frontendhack-logo
25rem = 400px

At the default root font size of 16px, 25rem is exactly 400px.

Calculation based on a root font-size of 16 pixels.

How to convert 25rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 25rem that is 25 × 16 = 400px.

400px is a very large size, typically used for hero headings, containers and big layout dimensions.

25rem at different root font sizes

Root font sizeInputResult
10px25rem250px
12px25rem300px
14px25rem350px
15px25rem375px
16px25rem400px
18px25rem450px
20px25rem500px
22px25rem550px
24px25rem600px

CSS examples

font-size: 25rem; /* 400px */
padding: 25rem;
margin-bottom: 25rem;
width: 25rem;

The same values in pixels, if you need a fixed size:

font-size: 400px;
padding: 400px;

Tailwind CSS equivalent

25rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[25rem] or text-[25rem].

Nearby values

REMPixels
25rem400px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

25rem equals 400px when the root font size is the browser default of 16px. The calculation is 25 × 16 = 400.

400px equals 25rem at a 16px root font size (400 ÷ 16 = 25).

Yes. rem is relative to the root font size, so 25rem becomes 450px at an 18px root and 500px at a 20px root. Use the base font size field above to try any value.

Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.