80-Character Line Limit

Cluster debates the relevance of the traditional 80-character line width limit for code and text, weighing readability benefits, historical reasons like terminals and print media, split-screen workflows against modern wide monitors favoring longer lines up to 100-120 characters.

πŸ“‰ Falling 0.4x Programming Languages
2,934
Comments
20
Years Active
5
Top Authors
#1876
Topic ID

Activity Over Time

2007
6
2008
15
2009
38
2010
53
2011
102
2012
124
2013
221
2014
169
2015
150
2016
157
2017
175
2018
138
2019
225
2020
293
2021
227
2022
230
2023
205
2024
231
2025
172
2026
3

Keywords

MS PEP DOS HN FOSS researchgate.net EDIT onlinegrammar.com HARD IDE characters 80 line lines length columns screen wrapping code width

Sample Comments

dsr12 β€’ Dec 12, 2012 β€’ View on HN

Now-a-days we have computers which can show more than 80 characters at a time. "Keep lines fewer than 80 characters", Is this recommendation still valid?

Cacti β€’ Jan 11, 2013 β€’ View on HN

80 columns exists for the same reason newspaper columns are about 2 inches and a novel is about 10-15 words wide---that is a width in which the human eye and brain can ready and fficiently absorb the information. Lines longer than 80 chars may be fine at times but they are generally a bad idea. Usually it's better to break the line up in some manner.

whirligig β€’ Jun 26, 2013 β€’ View on HN

Can someone explain justification for an 80 character line limit? Its 2013; large 16:9 and 16:10 resolution monitors are the norm.

andreasvc β€’ Aug 7, 2015 β€’ View on HN

Optimal readability is attained with 60-70 characters. This is due to human psychology, and technology such as monitor size does not change it.When lines are longer it becomes more difficult for your eyes to keep track of where the next line is. Furthermore, code is not formatted as paragraphs but as separate lines, so you end up wasting a lot of screen estate for those few long lines. Having a low maximum means it will be close to the average and a larger proportion of the screen is utilized

tptacek β€’ Jun 19, 2014 β€’ View on HN

Because there is an optimum range of characters per line for readability.

reassess_blind β€’ Oct 7, 2025 β€’ View on HN

Please don't listen to this. You are in an incredibly small minority with that preference. Most readers prefer a line length of 50-75 characters, similar to a novel. Newspaper columns are even narrower than that for easier scanning. If I have to move my head or resize my browser to read your content, it's poorly formatted.

mhartl β€’ Sep 25, 2007 β€’ View on HN

I can hardly work on code that's more than 80 characters across. Am I the only one?

Retric β€’ Jul 25, 2016 β€’ View on HN

A 65+ character line is already ugly. 80 is an arbitrary but sensible cutoff.

jwmoz β€’ Feb 11, 2023 β€’ View on HN

80 chars line width is too small imho. This isn’t the 90s anymore.

olavgg β€’ Aug 12, 2019 β€’ View on HN

I have 3-4 files side by side, Everything else is max 80 chars. I really don't understand why people need more, because long lines are REALLY HARD to read.