<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-calc](./css-calc.md) &gt; [calc](./css-calc.calc.md)

## calc() function

**Signature:**

```typescript
export declare function calc(css: string, options?: conversionOptions): string;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

css


</td><td>

string


</td><td>


</td></tr>
<tr><td>

options


</td><td>

[conversionOptions](./css-calc.conversionoptions.md)


</td><td>

_(Optional)_


</td></tr>
</tbody></table>

**Returns:**

string

