# calc()

*noun*

say it: **“KALK”** **/kælk/**

A CSS function that works out a size with math, and can mix units, such as 100% minus 250px.

## What does `calc()` do?

`calc()` does math in CSS, even mixing units, like "the full width minus the sidebar".

```css
.main { width: calc(100% - 250px); }   /* room left beside a 250px sidebar */
```

## In a sentence

- “The main column is **calc()** of 100% minus 250px, so it takes whatever room the sidebar leaves.”

Level: Freelancer · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=4)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/calc
