frontendhack-logo
138px = 8.625rem

At the default root font size of 16px, 138px is exactly 8.625rem.

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

How to convert 138px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 138px that is 138 ÷ 16 = 8.625rem.

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

138px at different root font sizes

Root font sizeInputResult
10px138px13.8rem
12px138px11.5rem
14px138px9.8571rem
15px138px9.2rem
16px138px8.625rem
18px138px7.6667rem
20px138px6.9rem
22px138px6.2727rem
24px138px5.75rem

CSS examples

font-size: 8.625rem; /* 138px */
padding: 8.625rem;
margin-bottom: 8.625rem;
width: 8.625rem;

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

font-size: 138px;
padding: 138px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
138px8.625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

138px equals 8.625rem when the root font size is the browser default of 16px. The calculation is 138 ÷ 16 = 8.625.

8.625rem equals 138px at a 16px root font size (8.625 × 16 = 138).

Yes. If the root font size is 18px, 138px equals 7.6667rem, and at 20px it equals 6.9rem. The pixel value itself never changes, only the rem equivalent. 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.