frontendhack-logo
26px = 1.625rem

At the default root font size of 16px, 26px is exactly 1.625rem.

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

How to convert 26px to rem

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

26px is a medium size, common for body text, subheadings, buttons and standard spacing.

26px at different root font sizes

Root font sizeInputResult
10px26px2.6rem
12px26px2.1667rem
14px26px1.8571rem
15px26px1.7333rem
16px26px1.625rem
18px26px1.4444rem
20px26px1.3rem
22px26px1.1818rem
24px26px1.0833rem

CSS examples

font-size: 1.625rem; /* 26px */
padding: 1.625rem;
margin-bottom: 1.625rem;
width: 1.625rem;

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

font-size: 26px;
padding: 26px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
26px1.625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

1.625rem equals 26px at a 16px root font size (1.625 × 16 = 26).

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