calc
CSS function · 9 supported, 2 partial, 9 unsupported across 21 clients
9 of 21 email clients render calc fully (Sep 2, 2026 data); it breaks outright in Outlook 365, Outlook (New), Outlook Classic and 6 more.
- 4/7 webmail, 3/6 desktop, 2/8 mobile clients support calc fully.
- Unsupported in Outlook 365, Outlook (New), Outlook Classic, Outlook iOS and 5 more.
- Partial in Gmail Android, Gmail iOS, behavior differs from browsers, test before relying on it.
- Outlook Classic (Word engine, supported to at least 2029) does not fully support calc, and its replacement changes little here; see the deprecation diff.
- Across all clients, only 6 of 298 tracked HTML/CSS features render identically everywhere.
Source: caniemail.com (MIT), via the Emailens engine. Last tested upstream Feb 25, 2020, synced by Emailens Sep 2, 2026.
The calc() function performs runtime arithmetic on CSS values, allowing expressions like calc(100% - 40px). Email support is moderate , modern clients honor it, Outlook on Windows does not, and behavior in Gmail varies across mobile and web. For maximum reliability, pre-compute values and supply literal pixel widths.
Client Support
| Client | Category | Engine | Support |
|---|---|---|---|
| Gmail | webmail | Gmail Web | Supported |
| Gmail Android | mobile | Gmail Mobile | PartialSee caveat 1 |
| Gmail iOS | mobile | Gmail Mobile | PartialSee caveat 1 |
| Outlook 365 | webmail | Outlook Web | Unsupported |
| Outlook (New) | desktop | Outlook Web | Unsupported |
| Outlook Classic | desktop | Microsoft Word | Unsupported |
| Outlook iOS | mobile | Outlook Mobile | Unsupported |
| Outlook Android | mobile | Outlook Mobile | Unsupported |
| Outlook for Mac | desktop | WebKit | Supported |
| Apple Mail | desktop | WebKit | Supported |
| Apple Mail iOS | mobile | WebKit | Supported |
| Yahoo Mail | webmail | Yahoo | Unsupported |
| Yahoo Mail Android | mobile | Yahoo | Unsupported |
| Yahoo Mail iOS | mobile | Yahoo | Unsupported |
| Samsung Mail | mobile | Samsung | Supported |
| Thunderbird | desktop | Gecko | Supported |
| HEY Mail | webmail | WebKit | Supported |
| Proton Mail | webmail | Proton | Supported |
| AOL Mail | webmail | AOL | Unsupported |
| Fastmail | webmail | Fastmail | Supported |
| Superhuman | desktop | Blink | Unknown |
Documented caveats (1)
- 1.Gmail Android, Gmail iOS: Partial. Not supported with non Google accounts.
Caveats recorded by caniemail.com (MIT) and carried verbatim, one entry per wording rather than per client.
Client-by-client behaviour for calc
Fully supports calc (9): Gmail, Outlook for Mac, Apple Mail, Apple Mail iOS, Samsung Mail, Thunderbird, HEY Mail, Proton Mail, Fastmail.
Partial support (2): Gmail Android, Gmail iOS. Expect rendering quirks unique to each engine. Partial support typically means a subset of values, an ignored shorthand, or sanitizer-specific rewrites.
No support (9): Outlook 365, Outlook (New), Outlook Classic, Outlook iOS, Outlook Android, Yahoo Mail, Yahoo Mail Android, Yahoo Mail iOS, AOL Mail. Plan fallbacks for these clients before relying on calc in production sends.
Behaviour unverified in: Superhuman.
When to use calc in email
- Sizing a side-bar column relative to a fluid main column.
- Reserving pixel-perfect padding inside a percentage-width container.
- Calculating button widths that respect their padding without breaking on mobile.
Rendering behaviour and edge cases
- Outlook on Windows ignores calc() and falls back to the original CSS keyword (auto, etc.).
- Gmail Web supports calc() but mobile Gmail apps lag.
- Mixing units (e.g., 100% - 40px) is the most fragile pattern , same-unit math is more reliable.
Recommended fallback strategy
Provide a literal width fallback before any calc() declaration so Outlook receives a sensible value. Avoid calc() for critical layout dimensions unless every targeted client supports it.
Fixes & Workarounds
Outlook 365
Unsupported"calc" is not supported in this email client.
Outlook (New)
Unsupported"calc" is not supported in this email client.
Outlook Classic
Unsupported"calc" is not supported in this email client.
Outlook iOS
Unsupported"calc" is not supported in this email client.
Outlook Android
Unsupported"calc" is not supported in this email client.
Yahoo Mail
Unsupported"calc" is not supported in this email client.
Yahoo Mail Android
Unsupported"calc" is not supported in this email client.
Yahoo Mail iOS
Unsupported"calc" is not supported in this email client.
AOL Mail
Unsupported"calc" is not supported in this email client.
Gmail Android
Partial"calc" is not supported in this email client.
Gmail iOS
Partial"calc" is not supported in this email client.
Related Features
Check your own HTML for calc
Paste your own, or run the sample below. Analyzed in this page, with no signup and nothing stored.
Test your calc layout across 21 email clients
Preview rendering, catch CSS issues, and see how calc displays across Outlook, Gmail, and Apple Mail. Free, no account needed.
Instant live preview · No signup required · 21 email engines
Last tested upstream: · Last synced by Emailens:
caniemail.com (MIT) records Feb 25, 2020 as the last time calc was tested in a real client, 6 years before this sync. Syncing copies that result forward, it does not re-test it. Carried in @emailens/engine data v0.12.2.