<hypot>
Widely availableSince 202394% of users
Calculates the hypotenuse of a right triangle. Useful for diagonal distances in layouts.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since December 2023. Widely available since June 2026.
See how modern your own CSS is.Check your CSS →
Quick example
.diagonal { width: calc(hypot(300px, 400px)); }<hypot> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage94%of people can use this6% use a browser without it.
Browsers
120+
118+
15.4+
120+Mobile
120+Android
118+Android
15.4+iOS