AyeCalc
All tools
Developer units

REM to EM Converter

Translate document-relative rem values into component-relative em values. Set both font-size contexts to avoid assuming that 1rem always equals 1em.

Instant resultAdjustable assumptionsNo data sent
Instant conversion

rem em

Runs in your browser
ems1em

Result rounded to a maximum of six decimal places.

Conversion ruleem = (rem × root font size) ÷ element font size

At equal 16px root and element sizes: 1rem = 1em.

01
Method

How to convert root ems to ems

First convert rem to pixels using the root font size, then divide by the relevant element font size. The units are equal only when both font sizes are equal.

Formulaem = (rem × root font size) ÷ element font size

At equal 16px root and element sizes: 1rem = 1em.

02
Worked example

Convert 1.5 rem to em

Apply the conversion rule to 1.5 root ems. Using the default settings, the result is 1.5 em.

1.5 rem1.5 em

Default context: root font size 16px, element font size 16px.

03
Quick reference

rem to em conversion table

These pre-calculated values use the same formula and default settings as the converter above.

Common root ems to ems conversions
root ems (rem)ems (em)
0.125 rem0.125 em
0.25 rem0.25 em
0.5 rem0.5 em
0.75 rem0.75 em
1 rem1 em
1.25 rem1.25 em
1.5 rem1.5 em
2 rem2 em
2.5 rem2.5 em
3 rem3 em
4 rem4 em
5 rem5 em
6 rem6 em
04
Practical use

Code and calculation snippets

Reuse the same conversion in a stylesheet or application. Keep contextual font sizes configurable when working with relative CSS units.

CSS
html { font-size: 16px; }
.component { font-size: 20px; }
/* 1rem equals 0.8em here */
JavaScript
const em = (rem * rootFontSize) / elementFontSize;
Sass
@use "sass:math";
@function rem-to-em($rem, $root: 16, $context: 16) {
  @return math.div($rem * $root, $context) * 1em;
}
05
Interpretation

Using the result accurately

This conversion is useful when moving a document-level token into a component that scales locally. Enter the computed root and component font sizes from the same rendered state.

Important limitation

REM and EM measure different contexts. Responsive rules, inherited font sizes, and nested em values may change the relationship at different breakpoints.

Reference: W3C CSS Values and Units: font-relative lengths.

Common questions

REM to EM Converter FAQ

Short answers about the formula, assumptions, and displayed precision.

How do I convert root ems to ems?

First convert rem to pixels using the root font size, then divide by the relevant element font size. The units are equal only when both font sizes are equal. For example, 1.5 rem converts to 1.5 em using the default settings.

What formula does this rem-to-em converter use?

em = (rem × root font size) ÷ element font size. At equal 16px root and element sizes: 1rem = 1em.

What assumptions does the calculator make?

The calculator starts with 16px for the root font size and 16px for the element font size. You can change either value to match your CSS.

How many decimal places should I use?

The calculator shows up to six decimal places and removes unnecessary trailing zeros. Keep more precision for further calculations, then round the final value to suit your measurement or design system.