How Hacker News ranking works: scoring, controversy, and penalties (2013)

198 points · 104 comments on HN · read original →

Points and comments are a snapshot, not live.

Hacker News ranks posts using a formula but heavily penalizes 20% of front-page stories.

The basic ranking formula is score = (votes-1)^0.8 / (age_hours+2)^1.8 * penalties. Analysis of top 60 stories over several days revealed automatic penalties: articles with "NSA" in the title got a 0.4 penalty, and many popular domains (e.g. arstechnica.com, theverge.com) received 0.25-0.8 penalties. A "controversy" penalty kicks in when comments exceed 40 and outnumber upvotes, using (votes/comments)^3, causing sudden disappearance from the front page. On average, 20% of front-page articles and 38% of second-page articles were penalized. Penalties can make each vote count as little as 0.05 votes, causing an article to drop 3.6x faster. Score curves show articles peak rapidly and decay over hours.

What commenters are saying

Commenters debated the purpose of penalties: some argued they prevent flamewars and maintain quality, while others saw them as narrative control. Multiple users noted that the system's design doesn't maximize interactions but rather incentivizes medium-complexity ideas with limited replies. One commenter observed that political topics used to be penalized but that an "experiment" three years ago allowed several Palestine conflict posts onto the front page. Another pointed out that the HN algorithm is trivially easy to bot, and suggested certain industries have outsized influence on story placement.