Calculate characters per inch (CPI) from a line width and character count, or find how many characters fit a line at 10, 12 or a custom CPI.

Count characters, including spaces, across the measured line. Proportional-font CPI is an average for that text.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Characters per inchFinds the character pitch of a measured line of textRequires the line width and the character count, spaces included
Characters per lineFinds how many whole characters fit across a lineRequires the character pitch and the line width
Required line widthFinds the width that a number of characters takes upRequires the character pitch and the character count

Widths are entered in inches, feet, centimeters or millimeters. The character pitch is chosen from 10, 12, 15 or 17 CPI, or typed in as a custom value. Characters per line also offers example widths of 6, 6.5, 7.5 and 8.27 inches.

Characters Per Inch Formulas

CPI = N ÷ W
CPICharacters per inch, also called character pitch
NNumber of characters across the line, counting spaces
WWidth of the line (in)

In a fixed-pitch font every character takes the same width, so CPI is a property of the font. Printer command sets name the common pitches: pica is 10 characters per inch, elite is 12 and micron is 15 [1]. At 12 characters per inch each character is 1 ÷ 12 = 0.0833 in wide, about 2.12 mm, and a 6.5 in line holds 78 characters.

Characters per inch

The main formula applies directly. A line of 240 characters that measures 6 in wide runs at 240 ÷ 6 = 40 CPI. A width in another unit is converted to inches first, at 2.54 cm to the inch.

Characters per line

N = CPI × W, rounded down

The answer is rounded down, because a partly fitting character does not print. At 17 CPI, a 7.5 in line holds 17 × 7.5 = 127.5, so 127 whole characters. The width should be the usable text width after the margins.

Required line width

W = N ÷ CPI

80 characters at 10 CPI need 80 ÷ 10 = 8 in, and the same 80 characters at 12 CPI need 6.67 in.

Limits of This Estimate

  • In a proportional font, such as most word processor fonts, letters differ in width, so CPI is only an average for the text that was measured. A different sentence in the same font and size gives a different figure, and the fixed pitches do not apply [1].
  • The example widths are choices, not printable areas. Printers and page layouts set their own margins.

Sources

  1. Brother, ESC/P Command Reference: pica, elite and micron pitch as 10, 12 and 15 characters per inch for fixed-pitch characters, and their not applying to proportional characters