# PX to EM Converter

URL: https://speedycalculator.com/calculators/conversion/px-to-em/
Last updated: 2026-10-25

> The px to em converter turns CSS pixel sizes into em and rem units (and points and percent) based on your root or parent font size, which is 16 px in every major browser by default.

## Inputs

- Base font size (px)
- Pixels (px)

## Results

- em / rem
- Points
- Percent

## Formula

```
em = px ÷ base font size (px)
```

## Explanation

Relative units let text and spacing scale when users change their browser font size, which helps accessibility. With the default 16 px base, 24 px is 1.5 em, 12 px is 0.75 em.

### How to use the PX to EM Converter

- **Base font size**
- **Pixels**
- Every result field is editable: type into **em / rem** or any other result and **Pixels** plus every other field update to match.

Results update as you type, and every field accepts the units shown in its menu.

### How it works

Pixels are divided by the base font size. Type an em value into the result to get pixels.

### Common sizes (16 px base)

pxem/rempt100.6257.5120.759130.81259.75140.87510.5150.937511.2516112181.12513.5201.2515241.518281.752132224362.2527402.5304833664448

### Inputs explained

FieldWhat to enterBase font sizeIn pxPixelsIn px

### What each result means

- **em / rem** = [Pixels] ÷ [Base font size]
- **Points** = [Pixels] × 0.75
- **Percent** = [Pixels] ÷ [Base font size] × 100

## Worked example

Inputs — Base font size: 16 px; Pixels: 24 px.

Results — **em / rem = 1.5 em**; Points = 18 pt; Percent = 150 %.

## FAQ

**What is 1 em in pixels?**
16 px with the default base size.

**What is the difference between em and rem?**
rem is relative to the root (html) font size; em is relative to the parent element.

**What formula does the PX to EM Converter use?**
em = px ÷ base font size (px).


## Sources

- [W3C – CSS Values and Units Module Level 4](https://www.w3.org/TR/css-values-4/)
