Increase Line Spacing Terminal Mac: 3 Quick Fixes
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
To increase line spacing in Terminal on a Mac, you adjust the font size or use a font with more generous line height—Terminal has no direct line-spacing slider. The quickest fix is to increase the font size in Settings > Profiles > Text, which automatically increases the space between lines. For finer control, you can use a font like SF Mono with a larger size or switch to a font known for taller line boxes.
Why Terminal Line Spacing Matters
Terminal’s default line spacing is tight, designed to pack as much text as possible into the window. For many users, this causes readability issues, especially on high-resolution Retina displays where characters are small. Increasing line spacing reduces eye strain, makes it easier to scan output, and helps you avoid misreading similar characters. It’s a common request from developers, system administrators, and anyone who spends hours in the command line.
Method 1: Increase Font Size (The Easiest Fix)
Terminal does not have a dedicated line-spacing option, but the most straightforward workaround is to increase the font size. Here’s how:
- Open Terminal (from Applications/Utilities).
- Press Cmd + , to open Settings (Preferences on older macOS).
- Go to the Profiles tab, then select the profile you use (e.g., Basic).
- Click the Text tab.
- Click the Font button (or the font name).
- In the Fonts window, increase the Size (e.g., from 12 to 14).
- Click Done.
When you increase the font size, the line height scales proportionally, giving you more vertical space between lines. This is the most reliable method because it works with any font and doesn’t require third-party tools.
Method 2: Use a Font with Taller Line Height
If you want more spacing without making the text larger, choose a font whose glyphs occupy more vertical space. Some fonts have a larger default line height relative to their font size. For example:
- Menlo (default on older macOS) has moderate line height.
- SF Mono (default on newer macOS) is slightly taller.
- Monaco is a classic but has tighter spacing.
- Fonts like Fira Code or JetBrains Mono often have taller line boxes.
To change the font, follow the same steps as above but select a different font in the Fonts window. You can also adjust the Line spacing option in some third-party terminal apps, but for the built-in Terminal, the font’s line height is what you get.
Method 3: Use a Terminal Alternative with Line Spacing Controls
If you need precise line spacing control, consider using a third-party terminal emulator. Popular options include:
- iTerm2 – offers a dedicated “Line spacing” slider in Preferences > Profiles > Text.
- Alacritty – a GPU-accelerated terminal with a config file where you can set
line_height. - Kitty – also configurable via its config file with
line_height.
These tools give you granular control, but they require installation and configuration. For most users, the built-in Terminal with a larger font is sufficient.
Common Problems and Misconceptions
Many users look for a “line spacing” checkbox in Terminal and assume it’s missing. There is no such option because Terminal relies on the font’s metrics. Another misconception is that changing the line spacing in macOS System Settings will affect Terminal—it won’t. Terminal’s line spacing is independent of the system-wide text size.
If you increase the font size too much, you might reduce the number of visible lines, which can be annoying for long outputs. A good balance is to increase the size by 1–2 points and pair it with a slightly wider window.
If you’re using a font with ligatures (like Fira Code), note that some fonts have inconsistent line heights across different weights. Stick to the regular weight for consistent spacing.
How to Read the Result and What to Expect
After changing the font size, you’ll notice the text is larger and the vertical gap between lines increases. This makes the output easier to read, but it also means fewer lines fit on screen. For example, a 12pt font might show 40 lines in a 500px window, while a 14pt font shows about 34 lines. If you’re working with logs or long outputs, you may need to scroll more, but the readability gain is usually worth it.
When to Use Each Method
- Quick readability boost: Increase the font size (Method 1).
- Precise line height without larger text: Use a font with taller line metrics (Method 2).
- Full control over line spacing: Install a third-party terminal like iTerm2 (Method 3).
If you’re a casual user who just wants more breathing room, Method 1 is enough. If you’re a developer who spends hours in the terminal, investing time in iTerm2 might be worthwhile because it also offers split panes, hotkeys, and other productivity features.
Frequently Asked Questions
Does Terminal have a line spacing setting?
No, the built-in Terminal app does not have a dedicated line spacing option. You can only control it indirectly by changing the font size or choosing a font with different line metrics.
Will increasing font size affect the spacing between lines?
Yes, because line height scales with font size. Larger fonts automatically create more space between lines, which is why this is the simplest workaround.
Can I set a custom line spacing value in Terminal?
Not directly. Terminal uses the font’s built-in line height. To set a custom value, you’d need to use a third-party terminal like iTerm2 that exposes a line spacing slider.
Why does my Terminal text look cramped on a Retina display?
Retina displays have high pixel density, making small fonts appear tiny. The default font size (11 or 12pt) can be hard to read, so increasing it to 14pt or higher often resolves the cramped feel.
Does changing the font in Terminal affect other apps?
No, the font setting is profile-specific and only affects Terminal. Other apps use their own font settings.
Is there a way to increase line spacing without making text bigger?
Yes, by choosing a font with a taller line height (like SF Mono at a larger size) or using a terminal emulator with a line spacing option. In the built-in Terminal, you cannot separate line height from font size.
Related
Formula used
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.