Skip to content
PictureToLink logoPictureToLink
Menu

Font size calculator

A 16px base with a 1.25 ratio gives heading sizes of 20, 25, 31.25, 39.06 and 48.83px. Pick your own base and ratio in this font size calculator to get a full type scale, generate a fluid clamp() rule such as clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem), or convert a point size to pixels and inches.

Change any value and the result updates as you type.

px

Used only when the scale ratio is set to Custom

Heading 1 (step 5)

48.83px

16 × 1.25^5 = 48.8281

Heading 2
39.06px
Heading 3
31.25px
Heading 4
25px
Heading 5
20px
Body text (base)
16pxYour base size: step 0 on the scale
Small text
12.8px
Captions
10.24px
Type scale: 16px base, ratio 1.25
StepUsepxrem (16px root)CSS
5Heading 148.83px3.0518remfont-size: 3.0518rem;
4Heading 239.06px2.4414remfont-size: 2.4414rem;
3Heading 331.25px1.9531remfont-size: 1.9531rem;
2Heading 425px1.5625remfont-size: 1.5625rem;
1Heading 520px1.25remfont-size: 1.25rem;
0Body text (base)16px1remfont-size: 1rem;
-1Small text12.8px0.8remfont-size: 0.8rem;
-2Captions10.24px0.64remfont-size: 0.64rem;

Calculated in your browser; nothing you type is sent or stored. Spotted a wrong result? Tell us.

By Ahsan Khowaja (CEO) · Updated 10 November 2026

On this page

How to use the font size calculator

The first box chooses one of three modes.

  1. Type scale. Set the body (base) font size and a ratio. You get the sizes for h1 to h5, body, small text and captions, in px and rem, with a copy-ready CSS line for each.
  2. Fluid font size. Give the smallest size and the screen width where it applies, then the largest size and its width. You get a CSS clamp() rule that slides smoothly between them. A fifth box shows the size at any viewport width you want to check.
  3. Points to pixels. Type a size in points, the unit Word, Google Docs and print use. You get CSS pixels, inches and millimeters, plus a chart of common point sizes.

The page helps you decide what your sizes should be. It doesn't convert a value you already have between web units: for 24px in rem or em, use the px to rem converter or the px to em converter.

Type scale calculator: heading sizes from one ratio

A type scale, also called a modular scale, is a set of font sizes where each step is the previous one multiplied by a fixed ratio. You choose two numbers and the heading font sizes follow, so you don't have to pick seven of them by eye.

size at step n = base × ratio^n

The base is step 0, your body text. Positive steps are headings, and negative steps are small text and captions. With a 16px base and a 1.25 ratio (a "major third"):

StepUseSizerem
5Heading 148.83px3.0518rem
4Heading 239.06px2.4414rem
3Heading 331.25px1.9531rem
2Heading 425px1.5625rem
1Heading 520px1.25rem
0Body text16px1rem
−1Small text12.8px0.8rem
−2Captions10.24px0.64rem

The working goes 16 × 1.25 = 20, 20 × 1.25 = 25, 25 × 1.25 = 31.25, then 39.0625 and 48.828125. Downwards, 16 ÷ 1.25 = 12.8 and 12.8 ÷ 1.25 = 10.24. Change the ratio to 1.2 and the h1 drops to 39.81px. Change it to 1.618 and the h1 jumps to 177.42px, which shows why the golden ratio is usually too steep for a six-level heading set on the web.

Which ratio to choose

The ratio names in the menu come from the frequency ratios of musical intervals, a convention popularised by type scale generator tools. Small ratios give a tight, bookish scale. Large ones give dramatic, poster-like headings.

RatioNameh1 from 16pxGood for
1.067Minor second22.13pxDense dashboards and documentation
1.125Major second28.83pxLong-form reading, mobile-first sites
1.200Minor third39.81pxGeneral-purpose websites
1.250Major third48.83pxMarketing pages, blogs
1.333Perfect fourth67.34pxLanding pages with big headlines
1.414Augmented fourth90.44pxEditorial and display-led design
1.500Perfect fifth121.5pxPosters, slides
1.618Golden ratio177.42pxPrint and large-format work

A common compromise is a small ratio on phones (1.125 or 1.2) and a bigger one on desktop (1.25 or 1.333). Another is to combine the scale with the fluid mode below, so the headings grow with the screen. For a golden ratio font size scale that stays usable, start from a larger base (18 or 20px) and use only three or four steps. The golden ratio calculator covers the ratio itself.

Fluid typography calculator: a clamp() font size

Fixed breakpoints make text jump in size when the window crosses 768px or 1024px. A fluid font size grows continuously instead. It uses CSS clamp(minimum, preferred, maximum), where the preferred value mixes a rem part with a viewport-width (vw) part. Call the smallest size a at viewport width v1, and the largest size b at width v2:

  • slope = (b − a) ÷ (v2 − v1) (pixels of font per pixel of viewport; × 100 gives the vw coefficient)
  • intercept = a − slope × v1 (the fixed part, converted to rem by dividing by 16)
  • font-size: clamp(a, intercept + slope × 100vw, b)

Take 16px at 320px wide, growing to 24px at 1280px wide. The slope is 8 ÷ 960 = 0.008333, so the vw part is 0.8333vw. The intercept is 16 − 0.008333 × 320 = 13.333px, or 0.8333rem. The rule is:

font-size: clamp(1rem, 0.8333rem + 0.8333vw, 1.5rem);

At a 768px viewport that resolves to 13.333 + 0.008333 × 768 = 19.73px. Below 320px it stays at 16px, and above 1280px at 24px. A second example, 18px at 400px to 32px at 1200px, gives clamp(1.125rem, 0.6875rem + 1.75vw, 2rem) and exactly 25px at an 800px viewport.

The rem part is there for accessibility. A font size written purely in vw ignores browser zoom and the user's font-size setting, which works against the WCAG requirement that text can be resized to 200%. With a rem term in the preferred value, the text still scales with the user's preference. Every current browser supports clamp() (MDN: clamp()).

Used this way, the fluid mode is a responsive font size calculator for a whole page. Apply the formula to each step of your type scale, with a small ratio at the narrow width and a larger ratio at the wide width, and a complete responsive type system fits in a few lines of CSS.

Set the minimum from body text on a phone, because that's where most readers start. 16 px is the usual floor, partly because iOS Safari zooms into any form field whose text is smaller than 16 px. Keep the maximum modest too. A heading that grows from 32 px to 64 px looks fine on a laptop and swallows a whole tablet screen in portrait, so test the middle widths, not only the two ends.

Points to pixels: the font point size chart

Print and word processors measure type in points, and 72 points make an inch. CSS pins a pixel at 1/96 of an inch, so 1pt = 96 ÷ 72 = 1.333px (CSS Values and Units: absolute lengths). The 12pt default in a word processor is therefore the same as the 16px default in a browser.

PointsCSS pixelsInchesMillimetersWhere you see it
8pt10.67px0.1111 in2.82 mmFootnotes, legal small print
9pt12px0.125 in3.18 mmCaptions
10pt13.33px0.1389 in3.53 mmDense documents, spreadsheets
10.5pt14px0.1458 in3.70 mmCompact body text
11pt14.67px0.1528 in3.88 mmCommon word-processor body size
12pt16px0.1667 in4.23 mmClassic document body text
14pt18.67px0.1944 in4.94 mmWCAG "large text" when bold
18pt24px0.25 in6.35 mmWCAG "large text"; subheadings
24pt32px0.3333 in8.47 mmHeadings
36pt48px0.5 in12.7 mmTitles, slide headings
72pt96px1 in25.4 mmPosters: one inch per 72 points

How tall is a size 14 font in inches? Nominally 14 ÷ 72 = 0.194 inches, about 4.9 mm. That figure is the height of the em box, which runs roughly from the top of the tallest ascender to the bottom of the lowest descender. The letters you see are smaller. Capitals in most typefaces are around two thirds of the point size, so 14pt capitals are closer to 3.3 mm tall, and the exact figure depends on the font.

Use the inches column when you size text for print or signage. On a screen, the physical size also depends on the display's pixel density, which the PPI calculator and the pixels to inches converter work out.

Font size comparison across units and devices

A font size in pixels is not one physical size. On a 96 dpi desktop monitor, 16px is one sixth of an inch. But CSS pixels are abstract: a phone packs two or three device pixels into every CSS pixel, and the operating system scales the whole interface. So 16px text on a 6-inch phone is physically smaller than on a 24-inch monitor, and it is read from closer.

That is why a type scale is defined in CSS px or rem and left to the device to render. Most sites settle on 16 to 18px for paragraphs, with 1.5 line spacing, and take the heading sizes from the scale. Anything below about 12px (0.75rem) should be rare, and never used for text people must read.

Questions and answers

What is the unit commonly used to measure font size?

Points in print, word processors and most design tools (1 point = 1/72 inch), and pixels or rem on the web (1pt = 1.333 CSS px). A 12pt document font and a 16px web font are the same nominal size.

How do I size the font for a website?

Start with body text at 16px (1rem) or a little larger. Pick a ratio between 1.125 and 1.333 and let the type scale calculator generate the heading sizes. Then check the h1 on a phone. If it is absurdly large, lower the ratio, or use the fluid mode so it only reaches full size on wide screens.

What is a good ratio for a type scale?

1.2 (minor third) and 1.25 (major third) suit most websites. With a 16px base they give an h1 of about 40px and 49px. Use 1.125 for text-heavy or mobile-first designs, and 1.333 or more only when the headings are meant to dominate.

How can I change the font size online?

In a browser, zoom with Ctrl and + (Cmd and + on a Mac) to enlarge everything on the page. You can also change the default font size in the browser's appearance settings, which enlarges any text set in rem or em. On a page you build yourself, set font-size in CSS with the values the calculator gives you.

How does the fluid calculator pick the rem and vw numbers?

It fits a straight line through the two points you give: the smallest size at the narrow width and the largest size at the wide width. The line's slope becomes the vw coefficient and its intercept becomes the rem part. Then clamp() caps the result at your two sizes, so the text never gets smaller or larger than you asked for.

Is 14 point font the same as 14 pixel?

No. 14pt is 18.67px in CSS, because a point is 1/72 inch and a CSS pixel is 1/96 inch. A 14px web font is about 10.5pt. The points mode converts either way: type the point size and read the pixel row.

All image, photo and design calculators