Rise Layouts logo Rise LayoutsDesign and layout, explained clearly
Typography

Tabular Figures and When Numbers Need Equal Widths

You build a pricing table, set every number to align right, and it still looks crooked. The column with 111.10 sits narrower than the one with 808.80, and the decimal points wander by a pixel or two from row to row.

Two columns of price numbers on a screen, one ragged and one neatly aligned on the decimal point

You build a pricing table, set every number to align right, and it still looks crooked. The column with 111.10 sits narrower than the one with 808.80, and the decimal points wander by a pixel or two from row to row. You check the CSS three times. The alignment is correct. The problem is the digits themselves.

Most typefaces made for reading draw their numbers at different widths. A 1 is narrow and an 8 or a 0 is wide, just like the letters i and m. In a sentence that looks natural. In a column, a timer or a price that updates every second, it makes the layout jitter and the numbers hard to compare. The fix is a setting called tabular figures, and almost every decent font already has it built in.

Proportional and tabular figures

Type designers draw two sets of digits in many fonts. Proportional figures get widths that suit each shape, so 1 takes less room than 4. Tabular figures all share one fixed width, usually the width of the widest digit, so any number with five digits takes exactly the same horizontal space as any other number with five digits.

The names come from print. Tabular figures were for tables, timetables and accounts, where columns had to line up without a ruler. Proportional figures were for running text, where even spacing mattered more than alignment.

There is a second distinction that gets mixed up with this one: lining figures sit on the baseline at roughly capital height, while oldstyle figures rise and fall like lowercase letters, with descenders on 3, 4, 5, 7 and 9. Width and height are separate choices. You can have tabular lining, proportional lining, tabular oldstyle or proportional oldstyle, if the font includes all four. For interface work you will almost always want tabular lining.

The default depends on the typeface. Inter, Roboto and most system interface fonts default to proportional lining figures. Helvetica and Arial happen to have tabular digits by default, which is why older spreadsheets often looked tidy without anyone choosing anything. Many book faces, such as Garamond revivals, default to oldstyle proportional.

Where tabular figures matter

I switch them on in four situations, and leave them off almost everywhere else.

  • Columns of numbers that people compare by scanning down, such as prices, statistics or financial tables.
  • Numbers that change in place, like countdown timers, progress counters, stopwatch displays or live scores. Proportional digits make the whole number shift sideways as values change.
  • Time and date stamps stacked in a list, for example in a log or an order history.
  • Any place where you align decimal points, including invoices and receipts.

The timer case is the most visible. Put a seconds counter in Inter at its default settings and watch the colon jump left and right every time a 1 appears. Switch to tabular figures and it stays perfectly still. People rarely say the first version looks broken. They say it feels cheap, and they cannot tell you why.

Data tables are the other big one. If you followed our piece on what game leaderboards teach about designing a data table, right alignment was one of the rules. Right alignment only works fully when every digit has the same width, otherwise the units, tens and hundreds columns drift.

Do not use tabular figures everywhere

Once designers discover tabular figures, a common next step is to set them globally so the problem never comes back. Some design systems do exactly that. I think it is a mistake for most sites.

In running text, tabular figures look loose. A year like 2011 gets two wide gaps around the narrow 1s, and a sentence with several numbers starts to look like it has extra spaces in it. The effect is small per number, but on a long article page with dates, prices and measurements throughout, the text loses its even colour. Proportional figures were drawn that way for a reason.

The better approach is to scope it. Apply tabular figures to tables, to elements with a class like stat or price, and to timers. Leave body text alone. In my experience this takes three or four CSS rules on a typical marketing site and maybe ten on a dashboard.

How to turn them on

In CSS the modern property is font-variant-numeric with the value tabular-nums. Add it to a table, a td, or a class you apply to numeric elements. If you also want lining figures in a font that defaults to oldstyle, add lining-nums in the same declaration, separated by a space.

The older and lower level way is font-feature-settings with the tnum feature switched on. It works in more ancient browsers but it overrides other feature settings on the same element, so I only reach for it when font-variant-numeric does nothing, which usually means the font was subset and the feature was stripped out.

In Figma, select the text, open the type settings panel, choose the details or OpenType options, and look for Tabular figures under the numbers section. Sketch, Affinity Designer and InDesign all have the equivalent in their OpenType or advanced character menus. If the option is greyed out, the font does not include the feature.

Checking whether your font supports it

Type 111111 and 888888 on two lines in the same size. With tabular figures active they should end at exactly the same point. If the 1s line is noticeably shorter, the setting is not taking effect. Free fonts from Google Fonts vary here: Inter, IBM Plex Sans, Source Sans 3, Roboto Mono and Manrope all include tabular figures, while some display faces and many handwriting styles do not. Web font subsets can remove the feature too, so test the actual file your site loads, not the desktop version.

Small details that go with it

Tabular figures solve width, but a column of numbers still needs care. Use the same number of decimal places throughout a column. Put units in the header rather than repeating them in every cell. If you have negative numbers, use a true minus sign rather than a hyphen, because a hyphen is shorter and sits at a different height in many fonts.

Weight matters as well. Bold digits are wider than regular ones, so a column that mixes a bold total row with regular figures above will misalign slightly even with tabular figures on. Either keep totals at the same weight and separate them with a rule, or accept the small shift. Our article on font weight in design goes further into choosing weights that work together.

A quick exercise for this week: open the page on your site or in your current project with the most numbers on it. Find the table, the stat block or the price list. Add tabular figures to just that element and compare screenshots before and after. It takes about ten minutes, and it is one of the few type changes that clients notice without being told.

FAQ

What is the difference between tabular and proportional figures?

Tabular figures give every digit the same width so columns line up. Proportional figures vary the width of each digit to suit its shape, which reads better in sentences.

Are monospaced fonts the same as tabular figures?

No. A monospaced font makes every character the same width, including letters. Tabular figures only fix the width of digits while the letters stay proportional.

Do tabular figures affect accessibility?

They do not change how screen readers announce numbers. They can help sighted readers compare values faster in tables.

Why does tabular-nums do nothing in my browser?

The font file you are loading probably does not contain the feature, often because it was subset to save size. Try the full font file or another typeface.

MV
Mara Vinter

Mara writes about the principles behind good layout, aimed at people who want their work to look intentional rather than accidental.

More posts by Mara

More in Typography

01doorganico 084goad 3hot8 4465456 after5internprogram ahandfulofblessings ahmadpc ahomcybersecurity allodialresources annodex antiquesandperiodcollectibles aotc asianworldkashmir beedlectrics bloggertemplatefree bluefeatheragency bodyweightsolution campaign08blog carfixadvisor catstreetcollective cbstvsports cnfanspurchasing committeeof500yearsofdignityandresistance covertopsdjs cs-kaiyuangame cuestacomunicaciontotal cxoutlet dancebetgame deskgearhub destinyvillastay detectmagazine di33 diamondsteelbuildings donmo dyanadropship emarsysfinance emimattl escapechan eskitarih evautoplay everythingweddings-orlando farmzone feedviewerapp foxstudiosscratch gamevui123 gleasongrade greetingsday hacklabasu haskell iw-kaiyun jagoanproperti jilidskripsi joltbusinessfinance juegodepokergratis juegospucca kaeru-festival latestmehndidesigns lestanzediottaviano litemagazines localcommunityhero lustrsazan mariashebets menswheels newwebstechs1 nikkit ootheday oxigenvpn plurfitness prefetial probudgetcarpetcleaning psychicmrsmartin pyaten qvantor rejoignezlogis rexzbot ruchin rwxqsgd5 sakaltime shibiaowang shop-bot skrtips spotlesshaven strcoding tetapatrium topselller uneplanteartificielle vipertechcr webtech1223411 wo-kygaming yamaha-mekar yeknava yoybuysheets zenunwa yamaha-mekar jilidskripsi ankertoto ankertoto ankertoto