Trigonometric functions (CSS)Baseline · Widely available
The sin(), cos(), tan(), asin(), acos(), atan(), and atan2() CSS functions compute various trigonometric functions.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 13, 2023. Widely available since Sep 13, 2025.
Browser support
DesktopChrome
1–110Not supported
111+Supportedsince Mar 7, 2023
Current: 155Edge
12–110Not supported
111+Supportedsince Mar 13, 2023
Current: 154Firefox
1–107Not supported
108+Supportedsince Dec 13, 2022
Current: 157Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27MobileChrome Android
18–110Not supported
111+Supportedsince Mar 7, 2023
Current: 155Firefox Android
4–107Not supported
108+Supportedsince Dec 13, 2022
Current: 157Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: acos.
Feature detection
CSS · check before using
@supports (width: calc(1px * sin(30deg))) {
/* styles that use sin */
}
/* or in JavaScript */
if (CSS.supports("width", "calc(1px * sin(30deg))")) {
// use it
}Sub-features
Support for each part of the feature (7). The overall table above shows when the whole feature works.