frontendhack-logo
15.5rem = 248px

At the default root font size of 16px, 15.5rem is exactly 248px.

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

How to convert 15.5rem to px

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

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

15.5rem at different root font sizes

Root font sizeInputResult
10px15.5rem155px
12px15.5rem186px
14px15.5rem217px
15px15.5rem232.5px
16px15.5rem248px
18px15.5rem279px
20px15.5rem310px
22px15.5rem341px
24px15.5rem372px

CSS examples

font-size: 15.5rem; /* 248px */
padding: 15.5rem;
margin-bottom: 15.5rem;
width: 15.5rem;

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

font-size: 248px;
padding: 248px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
15rem240px
15.1rem241.6px
15.2rem243.2px
15.3rem244.8px
15.4rem246.4px
15.5rem248px
15.6rem249.6px
15.7rem251.2px
15.8rem252.8px
15.9rem254.4px
16rem256px

Frequently Asked Questions

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

248px equals 15.5rem at a 16px root font size (248 ÷ 16 = 15.5).

Yes. rem is relative to the root font size, so 15.5rem becomes 279px at an 18px root and 310px 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.