Skip to content

The algorithm

How the algorithm picks what people see

Understand the prediction machine behind every feed in five minutes, and what that means for your next post.

  • 2 min read
  • In progress
  • Sourced

Ask AI about this guide

Opens your assistant with this guide already loaded, so you can ask how it applies to you.

Share this guide

How the algorithm picks what people see

Do this today

  1. Before you post, ask which action you want viewers to take: watch, send, reply or follow.

    A feed scores each post on how likely each viewer is to take each action.Platform engineering papers

  2. Make that action easy and obvious in the post itself.

    You don't beat the algorithm. You cause the actions it weights.Platform engineering papers

  3. Check how your post did on that one action, not total views.

    That's the number the feed was actually predicting.Creator-tested

The short version: a feed is a prediction machine. For every viewer, it guesses how likely they are to take each action on each post, adds those guesses up using weights the platform chooses, and shows the highest scores. You don’t need to beat “the algorithm.” You need to cause the actions it’s weighting, in the people you want to reach.

Before you post

0 of 4

YouTube, TikTok, Instagram and X describe different details, but they share the same basic shape. X publishes its code, so we use it as the worked example.

Interactive · The pipeline

Five stages between your upload and someone’s feed

Sourced

A huge pool → a few thousand

Fast, cheap models pull a shortlist from everything that could be shown: posts from accounts you follow, plus posts from accounts you don’t that look like things you engage with.

From the code

X, 2023: about 1,500 candidates per request, roughly half from accounts the viewer follows. X’s 2026 code pulls from Thunder (followed accounts), Phoenix retrieval and SimClusters (everyone else).

What it means for you

You can’t be ranked if you’re never retrieved. Clear topics and a consistent audience make it easier for retrieval to match you with the right people.

Tap a stage, or use the arrow keys. Funnel widths are illustrative; the examples are sourced on this page.

The ranking step is a weighted sum. The weights are a choice the platform makes, and that choice shapes what kind of content thrives. Change the weights below and watch the same six posts trade places.

Try it · Feed simulator

You set the rewards. Watch the feed reorder.

Illustrative posts

Closer to what YouTube and TikTok describe today: did people stay, and were they glad they did?

  1. ClickbaitShocking thumbnail, video doesn’t deliver
  2. Deep value40-minute tutorial that actually teaches
  3. Rage baitSpicy hot take on a creator drama
  4. Shareable20-second sketch everyone sends to a friend
  5. SocialA friend’s life update
  6. RecycledSomeone else’s viral clip, reposted with a watermark

Score = Σ (weight × predicted chance of each action), minus the negative-feedback term. That formula is the one X publishes in its open-source code. The six posts and their probabilities are made up to show the effect.

Three things to notice:

  • Clicks alone reward clickbait. That’s not a hypothetical. YouTube says it added watch time in 2012 because clicks alone rewarded misleading videos. From the platform
  • Rewarding replies without a penalty rewards rage. Every platform we cover subtracts negative signals like “not interested,” mutes, blocks or reports. X’s published weights for those are large and negative. From the code
  • Deep value wins when the feed measures it. YouTube’s own researchers found click-based ranking “often promotes deceptive videos that the user does not complete,” so they rank on expected watch time. Instagram subtracts the chance someone taps “see less.” Both push up posts that actually deliver. From the research See the research behind feeds.

There is no single score for your post. The same post gets a different predicted probability for every viewer, because the model reads each viewer’s own history. X’s model takes the viewer’s recent engagement history as its main input. YouTube says how much each signal counts depends on the viewer. From the platform

That’s why “post at 9 a.m.” or “use exactly 5 hashtags” rarely survives contact with reality. The system is matching posts to people. The lever you control is making something a specific audience will act on.

Sources7 sources