Design and Typography Calculators

These calculators handle the numbers behind screen and print design: converting pixel values to rem and em units for responsive CSS, finding a display's pixel density from its resolution and diagonal, working out how large an image can be printed at a given DPI or how many pixels a print needs, dividing a layout by the golden ratio and generating a modular type scale with ready-to-paste CSS.

5 free tools · no sign-up · no ads

All Design Calculators (5)

Which tool do I need?

  • Convert a design's pixel sizes to rem

    Set the root font size and paste pixel values to get rem and em equivalents and a conversion table.

    PX to REM Converter

  • Check whether a photo is big enough to print

    Enter the image's pixel size and the DPI to get the largest print size, or the pixels a print size needs.

    Print Size Calculator

  • Build a type scale for a website

    Pick a base size and ratio to get heading sizes with CSS variables you can copy.

    Type Scale CalculatorGolden Ratio Calculator

Frequently asked questions

Why use rem instead of px for font sizes?

rem scales with the user's browser font-size setting, so text stays readable for people who enlarge their default size. Pixel values ignore that preference.

Is DPI the same as PPI?

Strictly, PPI is pixels per inch in a digital image or screen and DPI is ink dots per inch from a printer, but the terms are used interchangeably when setting image print resolution.

What ratio should a type scale use?

Common choices are 1.125 or 1.2 for dense interfaces and 1.25 to 1.333 for editorial pages. Larger ratios give more dramatic headings but run out of room quickly on small screens.

What pixel density counts as a retina display?

Apple uses the term for screens dense enough that pixels are not visible at normal viewing distance, roughly 220 PPI or more on laptops and over 300 PPI on phones. The PPI calculator shows the density for any screen.