Instagram Algorithm Explained: The Tech Behind Trending Posts

A post does not trend because someone at Instagram chose it. It trends because it survived a series of automated cuts that almost every other post failed, inside a system most users never see.

The Instagram algorithm is not a single algorithm. Meta has said so itself, repeatedly: Feed, Stories, Explore and Reels each run their own ranking system, tuned to how people use that part of the app.

This article sticks to what Meta has actually published: Instagram’s official ranking explainers and its engineers’ own blog posts. Where the company has never published a detail, it says so, because the gaps are exactly where bad advice breeds.

Start With the Numbers: A Funnel, Not a Feed

Ranking at Instagram’s scale cannot mean scoring every post for every person. There are billions of pieces of media to choose from, and hundreds of millions of people open Explore every day.

So the system works as a funnel. Each stage throws away most of what it receives and passes a smaller, better-matched set to the next stage, until a few dozen posts remain.

Billions In, Thousands Out: Candidate Generation

The first stage is retrieval, also called candidate generation. Its job is not to judge quality. Its job is to pull a few thousand plausible candidates out of billions, fast enough to answer in real time.

For Explore, Meta’s engineers start from seed accounts: accounts you have already interacted with, by liking or saving their posts. Software then finds other accounts that behave similarly to those seeds.

The similarity engine is an embedding system. Meta’s 2019 engineering account describes ig2vec, which treats the sequence of accounts a person interacts with like words in a sentence, and learns which accounts belong near each other.

A newer retrieval model, the Two Towers neural network, learns separate embeddings for users and for media. Items whose embeddings sit close to yours become candidates, found through approximate nearest-neighbour search instead of by scanning everything.

500 Become 150, Then 50, Then 25

Meta’s 2019 overview of Explore gave the funnel unusually concrete numbers. For each request, the system identified thousands of eligible posts, sampled 500 candidates, and sent those 500 into the ranking stage.

Ranking then ran in three passes. A lightweight distillation model, trained to imitate the bigger models cheaply, cut 500 down to 150. A second model cut 150 to 50, and a final deep neural network picked the 25 posts that fill the grid.

The same post described the scale behind those cuts. The Explore system extracted 65 billion features and made 90 million model predictions every second, using a custom query language called IGQL, built for retrieval work.

You may also like:
AI security systems
social media economy
UMichVoter: The Election Analyst Behind the Handle, Explained

The Current Version: Four Stages and a Value Model

By 2023, Meta’s engineering blog described Explore ranking as four stages: retrieval, first-stage ranking, second-stage ranking and a final reranking pass. The shape is the same funnel, with heavier models made affordable by caching and pre-computation.

The second-stage ranker is a multi-task, multi-label neural network. It predicts the probability of several events at once — a click, a like, a tap on “see less” — for each candidate that reaches it.

Those probabilities are then combined by a value model: a weighted formula that turns predictions into one score per post. Meta published the form of that formula, expected value built from weighted probabilities added and subtracted, but not the weights.

The last pass, reranking, applies judgement the raw scores do not have. It can remove or push down items with integrity problems, and enforce diversity rules such as not showing several posts from the same author in a row.

It is the same basic machinery — predict, score, order — that sits behind most app personalization design work across the industry. Instagram’s version is simply running at unusual scale.

Not One Instagram Algorithm, but Several

Instagram’s 2023 explainer, updating its 2021 original, is explicit: there is no singular algorithm overseeing the app. Each surface ranks differently, because people want different things from each one.

Feed and Stories Rank People You Already Know

Feed mixes posts from accounts you follow with recommended posts and ads. Instagram lists thousands of signals, and names four groups as most important: your activity, information about the post, information about the poster, and your history with that person.

From those signals the system makes roughly a dozen predictions. In Feed, the five it watches most closely are whether you will spend a few seconds on a post, comment on it, like it, share it, or tap the profile photo.

Stories ranking is narrower, because the tray is almost entirely people you follow. Its key inputs are viewing history, engagement history such as likes and DMs, and closeness — how likely you are to be friends or family.

Explore and Reels Rank Content From Strangers

Explore and Reels mostly show accounts you do not follow, which changes the maths. In Explore, Instagram says information about the post itself — how many people are liking, commenting, sharing and saving it, and how quickly — matters much more than in Feed.

The predictions Explore cares about most are likes, saves and shares. For Reels, the top predictions are whether you will reshare the reel, watch it all the way through, like it, or go to the audio page.

Reels ranking also learns from people, not just behaviour. Instagram surveys users on whether a reel was worth their time or fun, and feeds those answers back into what counts as entertainment.

It is a reminder that ranking is partly a user experience design problem. The system is trained partly on what people say entertained them, not only on what they happened to tap.

The Three Signals Instagram Names First

In January 2025, Instagram’s head, Adam Mosseri, cut through the thousands of signals and named three that matter most for ranking: watch time, likes and sends. He said they lead for both audiences, followers and non-followers alike.

One nuance came with the list. Likes are slightly more important for content shown to your followers, while sends — people forwarding a post to a friend — are slightly more important for reaching people who do not follow you.

Rates, Not Totals

Mosseri also told creators which numbers to watch in Insights: average watch time, likes per reach and sends per reach. All three are rates, so a small account’s post can outscore a celebrity’s on the measures that drive ranking.

What he did not publish is how much each signal weighs. Any guide quoting exact multipliers, such as sends being worth five times a like, is inventing numbers Meta has never released.

You may also like:
personalised app interfaces
product design choices

The Rules Layer Above the Ranking

A post can score well and still never be recommended. Above the ranking systems sits a rules layer that decides what is eligible to be recommended at all.

Two Rulebooks: Standards and Guidelines

Community Standards are the hard boundary: content that breaks them is removed. Recommendation Guidelines are softer — content can stay on Instagram yet be kept out of Explore, Reels and suggested posts if it falls foul of them.

Instagram’s examples of content it aims not to recommend include depictions of people fighting, and posts depicting regulated products such as tobacco or vaping products. Accounts that repeatedly post such content can lose recommendation eligibility for a period.

The check on all of this is Account Status, a tool inside the app. It shows whether your account and content are eligible to be recommended, and lets you delete offending content or appeal when you think Instagram got it wrong.

Original Content Beats Reposts

In April 2024, Instagram announced a deliberate tilt toward original creators. When the system finds two or more identical pieces of content, it recommends only the original, replacing the repost in recommendations and labelling the copy.

Accounts that mainly repost other people’s work face a harder line. Instagram said accounts posting content they did not create or enhance, ten or more times in 30 days, would stop being recommended altogether.

The same announcement described how recommendations now start small. Eligible content is shown to a small audience first; the best performers graduate to wider audiences in stages, whatever the creator’s follower count.

Staged rollouts like that are why recommendation reach, not follower count, has become the main currency of the social media economy. A post trends by passing auditions, not by inheriting an audience.

The Machinery Underneath the Ranking

Precomputed, Cached and Retrained Hourly

None of this could run live for every request, so much of Explore is prepared in advance. Item embeddings are generated by an offline pipeline, and recommendations for some users are precomputed during off-peak hours.

Caching is the system’s favourite trick, Meta’s engineers say. Because the Two Towers design keeps user and item embeddings separate, both sides can be cached, which makes the lightweight first-stage ranker extremely cheap to run.

The models also refuse to sit still. Explore’s neural networks use continual online training, fine-tuned roughly every hour as new behaviour arrives, so a trend forming this morning can be reflected by the afternoon.

The Graph Under the Signals

Every signal described above is a fact about relationships: who follows whom, who liked what, who sent which post to a friend. At Meta, that web of objects and relationships is served by a system called TAO.

Meta’s engineering blog describes TAO as a geographically distributed data store built for the social graph. It handles over a billion read requests and millions of write requests every second: the raw material ranking consumes.

Meta has not published an Instagram-specific map of every store and cache behind ranking, and it has never described a single “trending switch”. Trending is an outcome of the funnel, not a feature someone turns on.

What Meta Has Never Published

The most useful thing a reader can take from Meta’s explainers is where they stop. The company has published the architecture, the signal families and the prediction targets. It has not published the following, despite what confident guides claim.

The Weights

No official source states how many likes equal one send, or what share of a ranking decision any signal controls. The value model’s weights are tuned internally — Meta describes hundreds of tunable parameters in Explore alone — and they shift as the system is retuned.

The “First Hour” and Other Folklore

The old version of this article claimed a post’s first hour decides its fate. Meta has never published that rule. Its explainers list velocity inside a post’s popularity information — how quickly people are liking, commenting, sharing and saving — which is a signal, not a deadline.

Hashtag folklore fails the same test. Instagram’s ranking explainers do not list hashtag counts among the ranking inputs, and no Meta publication promises that three, five or thirty hashtags change distribution. Hashtags describe content; the published inputs are behaviour.

Bought engagement fails it too. The previous version of this article presented buying views and likes as a legitimate spark for reach. Inauthentic activity breaks Instagram’s published rules, and fake signals are exactly what the integrity side of this system exists to discount.

“Shadowbanning”

Instagram addressed the term directly in its 2023 explainer. It said limiting or hiding someone’s content without a clear explanation is not its intention, and that it does not suppress content to encourage anyone to buy ads.

What does exist is narrower, and visible. Content that breaks the Recommendation Guidelines is kept out of recommendations, and Account Status tells you when that has happened to you. A hidden ban is folklore; an eligibility status is a settings screen.

Conclusion

The invisible tech behind a trending post is, in the end, a funnel with a memory. Billions of posts enter; embeddings and seed accounts nominate a few thousand; staged models cut them to a grid of 25; and a rules layer can veto any of them.

Instagram has published more of this machinery than most platforms: the stages, the signals, even the shape of its scoring formula. What it withholds — the weights and thresholds — is exactly what the loudest advice pretends to know. The Instagram algorithm rewards predicted attention, and it guards the recipe.

FAQs

Is there a single Instagram algorithm?

No. Instagram says it uses a variety of algorithms, classifiers and processes, with separate ranking systems for Feed, Stories, Explore, Reels and Search. Each is tuned to how people use that surface, which is why the same post can perform differently in each.

What are the most important Instagram algorithm signals?

In January 2025, Adam Mosseri named watch time, likes and sends as the three that matter most. Likes count slightly more with followers, and sends count slightly more with people who do not follow you. Instagram has never published any signal’s exact weight.

How does a post reach the Explore page?

Explore starts from accounts you have interacted with, finds similar accounts through embeddings, and gathers their posts as candidates. Staged ranking models then cut thousands of candidates down — in Meta’s published example, from 500 sampled posts to a final 25.

Does the first hour decide whether a post trends?

Meta has never published a first-hour rule. Its explainers list how quickly a post gathers likes, comments, shares and saves as one popularity signal among thousands. Speed matters as data; a sixty-minute deadline is folklore.

What is shadowbanning on Instagram?

Instagram says it does not secretly suppress accounts. Content that breaks its Recommendation Guidelines is excluded from recommendations, and the Account Status tool shows whether your content is eligible and lets you appeal. If reach drops, Instagram directs you to that screen first.

ABOUT DIRECTOR
Successful businessman sitting at desk
George Smith

As the owner of TechHuda Agency, I specialize in SEO, Web Development, and Digital Marketing, delivering comprehensive strategies to drive growth and enhance online engagement.

Recent News

Categories