Numbers, dates, and units
Decides when a number is a numeral, how dates and times are written for people and for machines, and how units, currency, and ranges attach to their numbers.
A number is the one part of a sentence a reader can act on without reading the words around it. They copy a limit into a config file, set an alarm for a time, or budget against a price. So the rules here lean toward whatever is hardest to misread.
One distinction runs through the whole section. Anything a machine reads, or a person reads while working with a machine (logs, filenames, tables, interface text, code), takes the denser form: numerals, ISO dates, 24-hour times. Prose for people takes the form people say aloud.
Numerals and words
Numerals for 10 and up
Spell out zero through nine; use numerals for 10 and up. Numerals always win, whatever the size, for measurements, percentages, version numbers, times, money, anything that appears in interface text (a button, a dialog, a message: “Delete 3 files?”), any number compared with a numeral in the same sentence (“3 of 12 tests failed”), and any limit or threshold a rule or check states (“more than 8 words”, “9 items or fewer”, “past 9 steps”, “wider than 5 columns”). A version number takes the word in prose, “version 4.2” or “version 1 of the API”; the short form “v4.2” belongs only in interface text, tags, and code, never in a prose sentence. Ages, street numbers, and the numbers in a score or vote count are numerals too, as num-ages, num-addresses, and num-scores-and-tallies set out.
No sentence-initial numeral
Don’t start a sentence with a numeral. Spell the number out or rewrite so it moves inside the sentence. A numeral after a period looks like a stray list marker.
Ordinals
Spell out first through ninth; write 10th and up as numerals with the suffix on the line. The threshold is the same as for cardinal numbers, so “the third attempt” and “the 12th release” sit together without a second rule. Never raise the suffix as a superscript: it shrinks to a size some readers can’t see, and it breaks when text is copied. Don’t put an ordinal in a date; a date takes the plain numeral, as num-date-forms says.
Fractions and decimals
Spell out a simple fraction that stands alone, use decimals for anything measured, and put a zero before a decimal point. Write “two-thirds of customers” and “half the team,” hyphenated when the fraction is spelled out. A fraction attached to a unit or a whole number becomes a decimal: 2.5 GB, 1.5 m. Write 0.5, never .5, because a lone point is easy to miss and easy to lose in a copy. Give as many decimal places as the measurement supports, and the same number of places to every figure compared in one sentence or one column. Don’t use fraction characters such as ½, or a slash fraction such as 1/2, outside a formula or code. Durations follow num-durations instead.
Roman numerals
Use Arabic numerals for parts, phases, volumes, and versions; keep a roman numeral only where it is part of a name. Readers parse “Phase 3” at a glance and have to work out “Phase III.” When a law, a published title, or a product spells its name with roman numerals, copy the name as it stands, and use Arabic numerals everywhere else in the same document.
Ages
Write ages as numerals, even below 10. An age is a fact a reader checks against a limit, such as an eligibility rule or a price band, so it takes the form that reads fastest. This is an exception to num-numerals-ten-and-up. Hyphenate an age that comes before a noun or stands as a noun (“a 7-year-old,” “a 7-year-old laptop”), and leave it open after the noun (“the child is 7 years old”). Give an age group as a range or a limit: “ages 18 to 24,” “people 65 and older.” Mention a person’s age only when it matters to the point, as Inclusive and accessible language says.
Scores, votes, and results
Give scores, vote counts, and results as numerals, larger number first, joined by “to” in prose and by an en dash in tables. A tally is a comparison, so every part of it is a numeral, even below 10. Name what was counted the first time, and report abstentions and spoiled ballots in their own clause rather than folding them into the count. Never join the numbers with a hyphen.
Dates
Date formats
Write dates as 2026-09-15 where machines read them and as September 15, 2026 in prose. The ISO form (year, month, day, with hyphens) is for logs, filenames, tables, code, and anything a script might parse. In prose, write the month in full, the day as a numeral, and a comma before the year. A pattern catches the wrong forms in prose: an all-numeric date, an abbreviated month, and a missing comma before the year.
No slash dates
Don’t write a date as numbers separated by slashes or dots. “09/10/2026” is September 10 in one country and October 9 in another, and nothing on the page tells the reader which. The ISO form is the only all-numeric date the guide allows.
Weekdays, months, and years
Add the day of the week only when the reader acts on that day, write it before the date with a comma after it, and never put an ordinal in a date. A weekday helps with a closure, an event, or a deadline; elsewhere it is one more thing to check. When you give one, check it against a calendar, because a wrong weekday makes the reader doubt the date. Write “Saturday, March 21, 2026.” A month and year take no comma and no “of”: “March 2026.” Write the day as a plain numeral, “March 21,” never “March 21st” or “the 21st of March.”
Centuries, decades, and eras
Write “the 21st century” and “the 2020s,” and add BCE or CE only when the era isn’t obvious. A century follows num-ordinals (“the fifth century,” “the 21st century”), with “century” in lowercase and a hyphen when it comes before a noun (“21st-century records”). A decade takes all four digits and a plain “s”: never “the ’20s” or “the twenties,” which leave the century to the reader. Write “the early 2010s” and “the mid-2020s.” For a year before 1000, or a range that crosses year 1, put BCE or CE after the number with a space and no periods; don’t use BC or AD.
Times
12-hour time in prose
Use 12-hour time with a.m. and p.m. in prose, 24-hour time in technical contexts, and a time zone whenever the reader might be elsewhere. Write “a.m.” and “p.m.” in lowercase with periods, after a space. Use the 24-hour form in logs, schedules, tables, and interface text. Name the zone (“3 p.m. Eastern,” “15:00 UTC”) in anything read outside one office. A pattern catches “3PM,” “3 PM,” a 24-hour time inside a sentence, and a time with no zone after it.
Durations
Write a duration in prose as numerals with the unit spelled out, in whole units. Write “2 hours,” “90 days,” and “1 hour 30 minutes,” with no comma or “and” between the parts, rather than “1.5 hours,” which readers convert in their heads, sometimes wrongly. Unit symbols (h, min, s, ms) belong in tables, interface text, and technical measurements such as latency, as num-unit-symbols sets them; “2h 30m” never appears in a sentence. For a deadline, count in days rather than months or “a business week,” whose length varies: “within 30 days.” Hyphenate a duration before a noun: “a 30-day trial.”
Units and measurements
Metric first
Give metric units first, with imperial in parentheses only if the audience needs it. Most readers of software documentation use metric. Don’t give imperial alone.
Space before a unit
Put a space between a number and its unit, except before % and °. Write 10 GB, 5 ms, and 250 MB, but 95% and 40°C. Percentages are always numerals with the sign, even below 10: 5%, never “five percent.”
Unit symbols
Write unit symbols in their exact case, never pluralized and never followed by a period. The case carries meaning: k is kilo and K is kelvin, M is mega and m is milli or meter, B is a byte and b is a bit. Write kB, MB, GB, km, kg, ms, km/h (never kph or KMH), and Mbps for a network rate beside MB/s for a transfer. Use the decimal symbols (kB, MB, GB, a power of 1,000) by default, and the binary ones (KiB, MiB, GiB, a power of 1,024) only where the product measures in them, such as memory limits, and then match what the interface shows. Never write KB, which means either. With no number, spell the unit out: “a few megabytes.”
Temperature
Give temperatures in Celsius, written 21°C with no space, and add Fahrenheit in parentheses only for a US audience. The degree sign and the scale letter stay together and touch the number, as num-unit-space sets. Round the conversion to the same precision as the original. Use the minus sign for a temperature below zero, as num-math-signs says. A temperature in kelvins takes no degree sign and a space: 300 K. “Degrees” alone, without a scale, is never enough.
Dimensions and ratios
Join dimensions with a multiplication sign and a space on each side, and write a ratio with a colon and no spaces. Write 3 × 4 m and 800 × 600 pixels, width before height, with the unit once at the end when every number shares it. The letter x is not a multiplication sign: a screen reader reads it as “ex.” A ratio takes numerals and a colon: 16:9, 3:1. A share of people is usually clearer as a percentage, which num-unit-space covers.
Minus and other math signs
Use the minus sign (−) for negative numbers and subtraction, the multiplication sign (×) for multiplication, and words for comparisons in prose. A hyphen in front of a number can break from it at a line end and reads as a dash. In code, data files, and anything a parser reads, keep the hyphen-minus the parser expects. In a sentence, write “at least 8,” “fewer than 10,” and “or more”; the signs ≤, ≥, <, >, and ± belong in tables, formulas, and tight interface text. Write “three times as fast,” not “3x faster.”
Phone numbers and addresses
Phone numbers
Write a phone number in international form, +1 613 555 0142, on anything read outside one country, and as 613-555-0142 on content only North Americans read. The international form starts with a plus sign and the country code and groups the digits with spaces, so a reader anywhere can dial it. The North American form uses hyphens; don’t use parentheses around the area code or dots between the groups. Write an extension as a word, “extension 214,” after a comma. Don’t spell a number in letters: not every keypad shows them. On the web, link the number with tel: and the digits only, tel:+16135550142. Examples use the reserved 555-0100 to 555-0199 range, as Safe examples says.
Street addresses and postal codes
Write an address in a sentence on one line with the words spelled out, and in a mailing block in the form the postal service uses. In a sentence, spell out the street type and the province or state, put commas between the parts, name the unit first (“Unit 4, 1200 Example Road, Kanata, Ontario”), and leave out the postal code unless the reader is going to mail something. In a mailing block (a contact page, a form, a letter), give one part per line and follow the postal service of the destination country: in Canada, the unit joined to the street number with a hyphen, the abbreviated street type, and the two-letter province code before the postal code (“4-1200 Example Rd,” then “Kanata ON K2D 0F0”). A street number is always a numeral, even below 10. Write a Canadian postal code in capitals with one space in the middle, a US ZIP code as five digits or as five digits, a hyphen, and four digits, and a post office box as “PO Box 120,” without periods. A direction such as NW stays in capitals without periods in both forms. Examples use invented addresses; a Canadian postal code with D, F, I, O, Q, or U in it can’t belong to anyone, because Canada Post doesn’t use those letters.
Currency and large numbers
Currency symbols and codes
Put the currency symbol before the number, and use the currency code instead when more than one currency is possible. On a page read in several countries, put the three-letter code in front with a space: CAD 49, USD 49, EUR 45. Don’t write both the code and the symbol. Data, statistics, and money adds the currency code on a page’s first dollar amount, in data-dollar-country.
Thousands separators
Use commas as thousands separators in prose, and spell out “million” and “billion.” Write 1,250 and 12,000. Once a number reaches seven digits, pair a numeral with the word (2.5 million) unless the exact figure matters. Numbers in code, logs, and identifiers take no separators at all.
Ranges
Number ranges
Write “10 to 20” in prose and “10–20” in tables and interface text. Never use a hyphen for a range, and never pair “from” or “between” with a dash: “from 10–20” is wrong, and “from 10 to 20” is right. A page range in a citation uses the en dash too (“pp. 132–136”), as cite-locator sets out.
Units and symbols in a range
Repeat a symbol that touches the number at both ends of a range, and give a spaced unit or currency code once, after the second number. Write “10% to 20%,” “$10 to $20,” and “−5°C to 10°C,” because “10 to 20%” can be read as starting at 10 of something else. Write “5 to 10 GB” and “USD 10 to 20,” where the unit or code already stands apart. Repeat “million” and “billion” at both ends: “2 million to 3 million,” never “2 to 3 million,” which reads as starting at 2.