A few years ago, a friend asked me at dinner why her Instagram kept showing her sourdough videos. She had never baked a loaf in her life. However, she had watched one clip to the end while waiting for a train, and that was all it took. She thought the app was listening to her. In reality, it didn’t need to. It had simply watched her watch, and that moment is still my favorite way to get social media algorithms explained to someone who thinks their phone is spying on them.
I build recommender systems for a living. In other words, my job is to design the models that decide which post, video, or product a person sees next. So when people ask me for social media algorithms explained in plain language, I don’t start with conspiracy theories or growth hacks. Instead, I start with the pipeline. Once you see how a feed is put together, most of the mystery goes away, and as a result you get better at steering what shows up on your screen.
This is that explanation, written the way I would tell a friend over coffee rather than the way a press release would.
Social Media Algorithms Explained: There Is No Single “Algorithm”
People talk about “the algorithm” as if it were one brain sitting in a server room, judging every post. It isn’t. In fact, Instagram’s own head, Adam Mosseri, has said this many times. In his official explainer on Instagram ranking, he wrote that each part of the app (Feed, Stories, Explore, Reels, Search) uses its own algorithm, tuned to how people use that surface.
Similarly, Meta made the same point when it published its system cards for Facebook and Instagram: no single AI system decides everything people see.
That matches what I see at work. A real feed is dozens of models plus a pile of rules, filters, and business logic, all chained together. Some models find content, others score it, a few check it for policy problems, and still others make sure you don’t get five videos in a row from the same creator. Therefore, when we say “the algorithm,” we really mean that whole assembly line.
The Feed Is a Funnel: Social Media Algorithms Explained in Three Stages
Every major platform has the same basic problem. There are billions of posts, yet you will look at maybe a few hundred today. Nobody can score billions of items for every user every time they open the app, because the math and the electricity bill simply don’t allow it.
For that reason, the industry settled on a funnel with three broad stages:
- Candidate retrieval. First, narrow billions of items down to a few thousand that could plausibly interest you.
- Ranking. Next, score those candidates carefully with heavier models and sort them.
- Reranking and filtering. Finally, apply rules for diversity, freshness, safety, and ads, then build the final feed.
This isn’t a trade secret. For example, Google described YouTube’s version in a widely cited 2016 paper, Deep Neural Networks for YouTube Recommendations, which split the system into a candidate generation model and a separate ranking model. Likewise, when Twitter open sourced its timeline code in 2023, its engineering blog on the recommendation algorithm laid out three steps: candidate sourcing, ranking, and heuristics and filtering. That post also described the goal of pulling roughly 1,500 of the best posts from a pool of hundreds of millions.
Here is the part hardly anyone outside the industry hears when they look for social media algorithms explained: most of what decides your feed happens in the first stage. After all, if a post never makes it into the candidate pool, the smartest ranking model in the world will never see it.
Stage One of Social Media Algorithms Explained: Retrieval
Retrieval has to be quick, so it can’t be very smart. Its job, in short, is to pull “good enough” candidates in a few milliseconds.
Most platforms pull from two kinds of sources.
In network content comes from accounts you follow. This is the easy part, since the system just grabs recent posts from your follows, often from a fast search index. In Twitter’s 2023 code release, for instance, the public repository described its search index as supplying about half of the posts in a typical For You timeline.
Out of network content comes from accounts you don’t follow. This is where machine learning really earns its keep, and it is also why your feed feels more like television every year.
Embeddings and the Two Tower Model
The standard tool here is the embedding. Essentially, we train a model that turns every user and every post into a list of numbers, a point in a high dimensional space. Users and posts that “go together” end up near each other. A common design is the two tower model: one network encodes you, another encodes the content, and then retrieval becomes a nearest neighbor search. In plain terms, the system finds the posts whose points sit closest to yours.
Your point in that space isn’t fixed, though. It moves every time you linger, skip, like, or search. That is exactly why one fully watched sourdough video could pull my friend’s point toward a whole neighborhood of baking content. The model doesn’t know she doesn’t bake. Rather, it only knows she behaved like people who do.
Meanwhile, X’s newer codebase, released in 2026 under xai-org on GitHub, keeps the same split. One component serves recent posts from accounts you follow, while a separate retrieval model surfaces machine learning picks from the wider corpus. The names change from company to company; the design rarely does.
Stage Two of Social Media Algorithms Explained: Ranking
Once we have a few thousand candidates, we can afford heavier models. This is the part people usually mean by “the algorithm.”
Here is the most important idea in this whole article: ranking models don’t predict what you like. Instead, they predict what you will do.
A modern ranker is usually a multitask neural network. For each candidate post, it outputs a set of probabilities. What’s the chance you will like it? Comment? Share it? Watch to the end? Tap the profile? Hide it or report it? Twitter’s old “heavy ranker,” for example, worked this way, predicting the odds of several types of engagement for each post.
Mosseri was unusually specific about this for Instagram. In the same ranking explainer, he said the key predictions for Reels are whether you will reshare a reel, watch it all the way through, like it, and go to the audio page. For Explore, on the other hand, the key actions are likes, saves, and shares.
From Many Predictions to One Score
Those probabilities then get combined into one score, usually a weighted sum. As you might expect, engineers and product teams argue for months over those weights. Is a share worth three likes? A predicted “hide,” meanwhile, might need to pull the score down hard. And then there is watch time, which often gets capped so long videos don’t swamp short ones. Each choice moves billions of impressions. Honestly, I have sat in meetings where a change of a few percent in one weight was debated longer than some product launches.
TikTok describes the same mechanics in simpler words. Its transparency page on the recommendation system explains that it combines signals into a prediction score for each video, an estimate of how likely you are to interact with it, and then serves the highest scoring videos to your For You feed.
Stage Three of Social Media Algorithms Explained: The Last Mile of Rules
If ranking alone decided your feed, it would be repetitive and occasionally awful. That’s because the top ten items for a given user often come from the same two creators or the same hot topic. So the last stage reshapes the list.
This is where you will find:
- Diversity rules. TikTok, for example, says its feed passes a similarity check before videos are served, so you don’t get two near identical videos back to back.
- Author limits. These are caps on how many posts from one account appear in a row.
- Integrity filters. Content that breaks policy is removed, while borderline content is often demoted rather than deleted.
- Ads and inserts. Sponsored posts, follow suggestions, and other modules get slotted in as well. NBC’s coverage of Twitter’s code release noted that Home Mixer adds ads and follow recommendations before the feed reaches the user.
Consequently, when people say they were “shadowbanned,” the cause is usually somewhere in this layer or in retrieval. Their content wasn’t banned; it just stopped winning the competition for slots.
Social Media Algorithms Explained Through the Signals That Matter Most
Ask most people what drives their feed and they will say likes. Likes do matter, but on their own they are a weak signal, mainly because plenty of people never tap the heart. The signals we actually lean on are quieter.
Dwell time and watch through. How long you stay on a post is one of the richest signals we have, because everyone produces it, all the time, without thinking. A three second pause over a photo says something. A 40 second video watched to the end, by contrast, says a lot.
Skips. Scrolling past in half a second is also data. So is swiping away a video in the first second. In fact, these negative signals shape your profile just as much as the positive ones.
Shares and sends. Sending a post to a friend in a direct message is one of the strongest positive signals on most platforms. After all, it suggests the content was worth putting your own name behind.
Explicit feedback. This includes “Not interested,” “Show less,” dislikes, and hides. YouTube’s help page on how recommendations work says the system learns from over 80 billion signals, including likes, dislikes, and satisfaction surveys that ask viewers to rate videos they watched. That last one matters, because it tells the system whether you were satisfied, not just whether you kept watching.
Context. Finally, there is time of day, device, connection speed, and which surface you are on. The same person wants different things at 7 a.m. on a phone than at 10 p.m. on a TV.
A Caveat About Implicit Signals
One honest admission from my side of the table: implicit signals are noisy. For example, someone who watched a car crash video to the end didn’t necessarily enjoy it. People rubberneck. As a result, a system trained only on what holds attention will learn to serve things that hold attention, and that isn’t always the same as what makes your day better. I will come back to that, because it is the central tension in this field.
Social Media Algorithms Explained Platform by Platform
Under the hood, the pipelines look alike. What differs is what each company tells its models to care about, and also what it feeds them.
Instagram splits its surfaces by intent. Mosseri has described Stories as where people look for close friends, Explore as discovery, and Reels as entertainment. Accordingly, Feed and Stories lean on your relationships and history with specific accounts, whereas Reels and Explore lean much more on interest prediction.
Facebook started as a friends and family product. Today, however, it blends in a large share of “unconnected” recommendations from accounts you don’t follow, which Meta covered in its announcement of the system cards. The same post also points out that you can switch to a chronological view through the Feeds tab on Facebook or the Following option on Instagram.
TikTok
TikTok is the purest interest graph product. When it first explained its For You feed in its newsroom post on how TikTok recommends videos, it said new users can pick categories of interest, and people who skip that step get a general feed of popular videos to start. From there, your behavior takes over. TikTok has also said that follower count isn’t a direct factor in recommendations, which is why unknown creators can blow up overnight and why internet memes spread so quickly there.
YouTube
YouTube, by comparison, has put a lot of public weight on satisfaction over raw watch time. Cristos Goodrow, the engineering VP who has spent more than a decade on the system, wrote a long post on YouTube’s recommendation system describing the goal as helping people find videos they want to watch and that give them value. In addition, YouTube says the homepage relies mostly on watch history, while “Up Next” relies mostly on the video you are watching right now.
X
X is a hybrid. Traditionally, about half your timeline came from people you follow and half from recommendations, with a large neural model doing the ranking. The 2026 rebuild moved to a transformer based ranker adapted from xAI’s Grok work. Even so, the funnel shape stayed the same.
Social Media Algorithms Explained: The Cold Start Problem and the “Test Audience”
Every recommender system has the same weak spot: new things. A brand new user has no history, and likewise a brand new post has no engagement. Models trained on behavior, therefore, have nothing to work with.
Platforms deal with this in two ways.
For new users, they lean on onboarding choices, broad popularity, and coarse signals such as region and language, and then they learn fast from your first few sessions. In practice, the first hour on a new app shapes your feed more than you would guess.
For new posts, most platforms run something that works like a small test. When TikTok first described its system, coverage such as Tech Brew’s summary explained that new uploads are shown to a small group first, and if that group responds well, distribution widens. Instagram has described a similar pattern. In machine learning terms, this is exploration: the system spends a little reach on unknown content so it can learn whether it deserves more.
This is why the first hour of a post’s life matters so much. It is also why identical content can perform very differently on different days, since it depends on which test audience it landed in and how they happened to feel.
Social Media Algorithms Explained: What Engagement Optimization Gets Wrong
I would be doing you a disservice if I presented social media algorithms explained as neutral mirrors. They aren’t. They optimize what we tell them to, and for a long time the industry mostly told them to maximize engagement.
Fortunately, the research on this is getting sharper. A preregistered experiment by Smitha Milli and colleagues, published in PNAS Nexus as Engagement, user satisfaction, and the amplification of divisive content on social media, compared what Twitter’s engagement based algorithm showed 806 users with a reverse chronological feed of the same accounts. The algorithm amplified emotionally charged, out group hostile political content. What’s more, the users, when asked, didn’t prefer the political posts the algorithm picked for them. When the researchers instead tried ranking by what users said they wanted, angry and partisan content dropped, although the effect on echo chambers was mixed.
That gap between what people click and what they say they want is what researchers call revealed versus stated preferences. Frankly, every recommender engineer I respect worries about it.
Are Chronological Feeds Better Than Social Media Algorithms?
At the same time, simply turning the algorithm off is not a magic fix. A large field experiment published in Science, How do social media feed algorithms affect attitudes and behavior in an election campaign?, moved consenting Facebook and Instagram users to chronological feeds during the 2020 US election. Those users saw more political content and more content from untrustworthy sources. On Facebook, however, they saw less uncivil content. Over the three month study, the change didn’t significantly shift their polarization or political attitudes. In addition, people spent noticeably less time on the apps, which tells you exactly why platforms are reluctant to make chronological the default.
So the honest picture is this. Ranking clearly changes what you are exposed to. Whether it changes what you believe is harder to prove, and the answer seems to depend a lot on what the ranker is optimizing for. For that reason, I’m encouraged by moves toward satisfaction surveys, “not interested” controls, and blending stated preferences into training. They don’t solve the problem, but they do point the models at something closer to what people actually value.
Social Media Algorithms Explained in Practice: How to Steer Your Feed
Once you understand the funnel, the practical advice gets simple. After all, you aren’t fighting a mind reader. You are training a prediction model, and you do that with your behavior. Think of this section as social media algorithms explained from the user’s seat rather than the engineer’s.
Use the negative buttons. “Not interested,” “Show less,” and dislikes are explicit labels, and models weight explicit labels highly. Meta’s system cards, for example, say “Show less” on Facebook and “Not interested” on Instagram temporarily lower the ranking score for similar content. Use them a handful of times on a topic and you will see it fade.
Watch your watching. Since dwell time is such a strong signal, hate watching is still watching. If a type of video makes you angry, scrolling past quickly does more than staring at it in disbelief.
Search for what you want. Searches are strong intent signals, so they can pull your embedding toward new interests within a day or two.
Use the chronological and following views. Most major apps now offer them. In effect, they are the closest thing to an off switch.
Reset when you need to. TikTok, Instagram, and YouTube all offer ways to refresh recommendations or clear watch history. Keep in mind, though, that a reset puts you back into cold start, so expect a few days of generic popular content while the system relearns you.
Check “Why am I seeing this?” Meta and TikTok both offer explanations for individual recommendations. They are simplified; even so, they often point to the exact behavior that triggered a topic.
Social Media Algorithms Explained: Myths I Hear Constantly
“Posting at the perfect time beats the algorithm.” Timing affects who is online for the early test audience, so it matters a little. Still, it doesn’t override weak content.
“Hashtags are the secret.” On most modern platforms, content understanding models read the video, audio, captions, and images directly. Hashtags help a bit with classification, but they are nowhere near the lever they were in 2015.
“The app is listening through my microphone.” I can’t vouch for every app on earth. However, nothing about how feeds work requires it. Your behavior, your searches, your location settings, and the behavior of people similar to you are more than enough to produce eerily accurate guesses. The sourdough video proves the point.
“Follower count is everything.” It helps in network distribution, since followers see your posts in their candidate pool. For recommendation surfaces like Reels, TikTok, and YouTube’s homepage, by contrast, predicted engagement on the specific post matters far more. That shift is a big part of how the creator economy works for people trying to earn from their posts.
The Takeaway on Social Media Algorithms Explained
Social media algorithms explained in one sentence: a feed is a funnel of models that guess what you will do next, followed by rules that tidy the guess.
Nothing about that is magic, and none of it is fixed. The models learn from you every session, and that cuts both ways. On one hand, you leave fingerprints on your own feed every time you pause, skip, share, or search, which means you have more control than it feels like. On the other hand, the companies building these systems choose what their models aim for. Watch time, engagement, satisfaction, and long term wellbeing are all targets someone picked on purpose.
My friend, by the way, still gets bread videos. Now, she told me, she watches them on purpose. She still hasn’t baked anything.
FAQ: Social Media Algorithms Explained
What is a social media algorithm in simple terms?
With social media algorithms explained simply, it is a set of machine learning models and rules that picks which posts to show you and in what order, based on predictions about what you are likely to engage with. Meta’s overview of how AI ranks content is a good plain language starting point.
Does every platform use the same social media algorithm?
No. Platforms share a similar funnel design, but each one, and often each surface inside one app, has its own models and goals. Instagram explains this in its ranking explainer.
Can I turn off social media algorithms completely?
Not entirely, but you can get close. Facebook’s Feeds tab and Instagram’s Following view show posts from accounts you follow in chronological order, as described in Meta’s transparency announcement. X also offers a Following timeline.
Why does TikTok seem to know me so well?
TikTok ranks videos by predicted interest using your watches, likes, shares, follows, and skips. Because short videos generate many signals per minute, it learns fast. Its transparency page walks through the scoring and similarity checks.
How do I reset my recommendations?
Most apps let you clear watch or search history or refresh your feed. YouTube’s guide to how recommendations work explains which history settings affect what you see.
Do social media algorithms make people more polarized?
The evidence is mixed. Engagement based ranking can amplify divisive content, according to research in PNAS Nexus. However, a large Science study found that switching to chronological feeds didn’t significantly change polarization over three months.
References
- Mosseri, A. (2023). Instagram Ranking Explained. Instagram.
- Meta AI. (2023). Introducing 22 system cards that explain how AI powers experiences on Facebook and Instagram. Meta.
- Clegg, N. (2023). How AI Influences What You See on Facebook and Instagram. Meta Newsroom.
- Covington, P., Adams, J., & Sargin, E. (2016). Deep Neural Networks for YouTube Recommendations. Proceedings of the 10th ACM Conference on Recommender Systems.
- Goodrow, C. (2021). On YouTube’s recommendation system. YouTube Official Blog.
- YouTube Help. How YouTube recommendations work. Google.
- Twitter Engineering. (2023). Twitter’s Recommendation Algorithm. X Engineering Blog.
- X Corp. The Algorithm: X’s Recommendation Algorithm repository. GitHub.
- xAI. (2026). X For You Feed Algorithm repository. GitHub.
- TikTok. (2020). How TikTok recommends videos #ForYou. TikTok Newsroom.
- TikTok. Introduction to the TikTok recommendation system. TikTok Transparency Center.
- Tech Brew. (2020). TikTok provides details on its recommendation system. Morning Brew.
- NBC Bay Area. (2023). Twitter Makes Its Recommendation Algorithm Open Source: Here’s How It Works.
- Milli, S., Carroll, M., Wang, Y., Pandey, S., Zhao, S., & Dragan, A. D. (2025). Engagement, user satisfaction, and the amplification of divisive content on social media. PNAS Nexus, 4(3).
- Guess, A. M., et al. (2023). How do social media feed algorithms affect attitudes and behavior in an election campaign? Science, 381(6656), 398 to 404.

Leave a Reply