frontendhack-logo
82px = 5.125rem

At the default root font size of 16px, 82px is exactly 5.125rem.

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

How to convert 82px to rem

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

82px is a large size, common for headings, section padding and generous layout gaps.

82px at different root font sizes

Root font sizeInputResult
10px82px8.2rem
12px82px6.8333rem
14px82px5.8571rem
15px82px5.4667rem
16px82px5.125rem
18px82px4.5556rem
20px82px4.1rem
22px82px3.7273rem
24px82px3.4167rem

CSS examples

font-size: 5.125rem; /* 82px */
padding: 5.125rem;
margin-bottom: 5.125rem;
width: 5.125rem;

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

font-size: 82px;
padding: 82px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
82px5.125rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

5.125rem equals 82px at a 16px root font size (5.125 × 16 = 82).

Yes. If the root font size is 18px, 82px equals 4.5556rem, and at 20px it equals 4.1rem. 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.