frontendhack-logo
480px = 30rem

At the default root font size of 16px, 480px is exactly 30rem.

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

How to convert 480px to rem

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

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

480px at different root font sizes

Root font sizeInputResult
10px480px48rem
12px480px40rem
14px480px34.2857rem
15px480px32rem
16px480px30rem
18px480px26.6667rem
20px480px24rem
22px480px21.8182rem
24px480px20rem

CSS examples

font-size: 30rem; /* 480px */
padding: 30rem;
margin-bottom: 30rem;
width: 30rem;

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

font-size: 480px;
padding: 480px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
480px30rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

30rem equals 480px at a 16px root font size (30 × 16 = 480).

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