# Monospace Font

> A font where every letter takes the same width. Used for code.

**Field:** Design  
**Category:** Typography  
**Also known as:** Monospaced Font, Fixed-Width Font, Monospace

## Think of it like

It is like eggs in a carton. Every letter gets the same size cup.

## Definition

A monospace font gives every character the same width. A thin i takes as much room as a wide m. That makes columns of text line up exactly, like on an old typewriter. Code editors and terminals use monospace fonts for this reason. For normal reading text, it looks uneven and wastes space.

## Example

Jack's code editor shows code in a monospace font. His lines of numbers stay in neat columns.

## Example code

```css
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
```

Code on a web page is usually set in a monospace font like this.

## Why it matters

Fixed widths make code, tables and data easy to scan in straight columns.

## Common mistake

Using a monospace font for long reading text to look techy. It slows the reader down.

## Three principles

- **Same width.** An i is as wide as an m.
- **Columns line up.** Great for code and data.
- **Not for long text.** Uneven gaps slow reading.

## Related terms

- [Typeface](https://learn.benibix.com/term/design/typeface)
- [Sans-Serif](https://learn.benibix.com/term/design/sans-serif)
- [Glyph](https://learn.benibix.com/term/design/glyph)

## Taught in

- [Serif and Sans-Serif Fonts](https://learn.benibix.com/learn/design-typography/serif-and-sans-serif-fonts): Typography, 4/17

![Four capital I letters side by side: one with no feet, one with thin tapered feet, one with thick block feet, and two monospace letters, i and m, in boxes of the same width.](https://learn.benibix.com/diagrams/typeface-classification.svg)

---

Source: https://learn.benibix.com/term/design/monospace-font
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
