frontendhack-logo
8.7rem = 139.2px

At the default root font size of 16px, 8.7rem is exactly 139.2px.

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

How to convert 8.7rem to px

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

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

8.7rem at different root font sizes

Root font sizeInputResult
10px8.7rem87px
12px8.7rem104.4px
14px8.7rem121.8px
15px8.7rem130.5px
16px8.7rem139.2px
18px8.7rem156.6px
20px8.7rem174px
22px8.7rem191.4px
24px8.7rem208.8px

CSS examples

font-size: 8.7rem; /* 139.2px */
padding: 8.7rem;
margin-bottom: 8.7rem;
width: 8.7rem;

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

font-size: 139.2px;
padding: 139.2px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
8.5rem136px
8.5625rem137px
8.6rem137.6px
8.625rem138px
8.6875rem139px
8.7rem139.2px
8.75rem140px
8.8rem140.8px
8.8125rem141px
8.875rem142px
8.9rem142.4px

Frequently Asked Questions

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

139.2px equals 8.7rem at a 16px root font size (139.2 ÷ 16 = 8.7).

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