Twitter (X) Algorithm 2026: How the For You Feed Ranks Posts
The Twitter (X) algorithm builds the For You feed by finding candidate posts from accounts you follow and accounts you do not, filtering them, scoring each one with a model that predicts how people will react, and ranking by that score. X publishes the code on GitHub. Replies sit far above likes in the published weights. This guide, updated November 2026, covers the pipeline, the weights and what to do about them. > **TL;DR:** The Twitter algorithm ranks For You posts by predicted actions, with replies worth far more than likes in the 2023 published weights (13.5 against 0.5). Posts older than 48 hours are filtered out, and each repeat post from one author is discounted. Keep links out of the main post and write for conversation.

Sections
How the Twitter algorithm builds your For You feed
The X (Twitter) algorithm works in a pipeline. It gathers candidate posts from accounts you follow and accounts you do not, filters out the ones that should not appear, scores the rest with a model that predicts how you will react, and applies adjustments such as author diversity before the feed is shown. Updated November 2026, based on X's public code and the 2023 weights it published earlier.
| Step | What happens | What it means for you |
|---|---|---|
| Find | Candidates come from followed accounts (in-network) and from accounts you do not follow (out-of-network) | Out-of-network is where reach beyond your followers happens |
| Filter | Posts are dropped before scoring, including any post older than 48 hours | A post that misses its window does not get a second life in For You |
| Score | One model predicts the actions a user may take on each post | You are optimizing for predicted actions, not raw follower count |
| Adjust | Each post after an author's first is multiplied by a decaying factor, down to a floor | Posting five times in a row dilutes the later posts |
| Blend | The ranked posts are assembled into the feed | The Following feed skips this ranking and shows accounts you follow |
Source: xai-org/x-algorithm on GitHub. The repo describes one model ranking in-network and out-of-network posts together, with an age filter for posts older than 48 hours and a decaying factor for repeat authors.
Is the Twitter algorithm open source?
Yes. X publishes the code that builds For You in the xai-org/x-algorithm repository. It describes the current ranker as one model that scores followed and unfollowed posts together. An older repository, twitter/the-algorithm, holds the 2023 system with Heavy Ranker, SimClusters and Tweepcred, and that is where the widely quoted weights come from.
Open source does not mean the live Twitter algorithm matches the code on any given day. The repo shows how the system is built, not what the feed looks like on a given day, so treat it as the most reliable map, not a live readout. For the model side in depth, read our X algorithm open source and Phoenix model explained post. This guide covers the signals and what to do about them.
What the Twitter algorithm ranks highest
The ranker predicts actions, then weighs them. The current repo lists the actions it predicts (favorite, reply, repost, quote, share, share via copy link, dwell and others) but gives no numeric weights. The numbers people quote come from the 2023 release:
| Action | 2023 published weight | Current repo | Note |
|---|---|---|---|
| Reply | 13.5 | Listed, no number | Conversation signals quality |
| Like | 0.5 | Listed (favorite), no number | Cheap action, low weight |
| Retweet | 1.0 | Listed (repost), no number | Distribution signal |
| Reply engaged by the author | 75.0 | Not stated | The author replying back to a reply, in the 2023 weights |
| Bookmark | None published | Not listed as an action | No published weight, so do not treat bookmarks as a ranking lever |
| Dwell time | Not stated | Listed | Time spent on a post counts as a signal |
| Mute, block, report | No number published | Not covered by the sources above | Widely treated as negative signals for the author |
Sources: the 2023 weights are in the the-algorithm-ml recap README, dated April 5, 2023, and the current action list is in xai-org/x-algorithm. Treat the 2023 numbers as history. They show the relative order (replies far above likes) but they are not today's weights.
What this means in practice
A post that sparks 50 replies tends to beat one with 200 likes, because the ranker rewards conversation over cheap approval. A reply you answer yourself is the strongest pattern in the 2023 weights. Posts whose only response is a link click do not get that lift, since X prefers to keep people on the platform.
How today's Twitter algorithm differs from the 2023 version
The 2023 system combined SimClusters (a community-detection model), a neural network called Heavy Ranker and an author score called Tweepcred. The current repo describes a different design: one model ranking in-network and out-of-network posts together. Heavy Ranker and Tweepcred are not mentioned there.
That matters because most Twitter algorithm advice online still quotes the 2023 numbers. When an article says "a reply is worth 13.5 likes" or "posting 2 to 3 times a day is the sweet spot", ask where it comes from. The first is a 2023 weight. The second has no published source: the code confirms an author-diversity decay exists but publishes no posts-per-day figure.
| 2023 system | Current system | |
|---|---|---|
| Ranker | Heavy Ranker neural network | One model for in-network and out-of-network posts |
| Community model | SimClusters | Not named in the repo |
| Author score | Tweepcred | Not named in the repo |
| Weights | Published (reply 13.5, like 0.5) | No numeric weights in the repo |
| Age limit | Not stated here | Posts older than 48 hours are filtered out |
How long does a post stay in For You?
The age filter in the current repo drops posts older than 48 hours before scoring. So a post has a window of two days at most to be shown through For You, and early engagement is the practical lever. X publishes no number for how fast reach decays inside that window, so we do not give one.
The first hour
Early engagement velocity is the practical lever. A post that collects replies quickly gives the model more evidence to show it to people outside your follower list. Build a core group that engages immediately, such as colleagues, community members and customers, and reply to comments on your own posts promptly. Replying back is the 2023 "reply engaged by the author" pattern, the highest weight in that release.
Does posting too often hurt your reach?
Yes, in the sense that repeat posts from one author in a feed are discounted. The repo says each post after an author's first is multiplied by a decaying factor, down to a floor. The practical reading: five posts in an hour from one account compete with each other, and only the strongest tends to do well.
The code publishes no ideal posts-per-day number. Our advice is to space strong posts apart and to stop publishing weak ones that dilute the average. Test your own cadence against your replies and impressions rather than copying a figure.
How content formats fare on X
The code does not publish a per-format bonus, so what follows is our working practice, not a documented weight.
- Text posts do well when they drive replies. Hot takes, questions and clear opinions work. Keep the first line strong, since it is what people read before deciding to engage.
- Images add dwell time. Multi-image posts can earn more time on post than a single image.
- Native video uploaded to X avoids the friction of leaving the platform. Dwell is a listed action, so watch time is relevant.
- Threads give several touchpoints. Make each post stand alone, because many people see only the first.
- Polls make interaction easy and invite conversation.
- External links are the exception worth following. X wants to keep people on the platform, so a post whose only value is a link click tends to travel less. Put the link in a reply to your main post.
For advertisers who study organic content before paying for reach, the logic mirrors the paid side: signal quality beats spend. See paid social for platform mix and media buying for how X's paid stack compares. For creative metrics that carry over from video platforms, thumb stop ratio and hold rate apply to video on X as well, and understanding social media impressions covers what an impression means across platforms.
How to increase reach on X
These tactics follow from what the code and the published weights support.
- Write for replies, not just likes. Ask a question, share an opinion people want to answer, or leave a clear gap that invites completion. Replies carry the highest published weight.
- Reply to your repliers. The 2023 weights put the highest value on a reply the author engages with.
- Front-load the hook. The first line decides whether people stop and engage.
- Keep links out of the main post. Put the link in the first reply.
- Build a reply network. Substantive replies to accounts in your niche create engagement patterns that help your own posts get seen.
- Do not chase bookmarks as a ranking trick. They are a useful sign of lasting value, but no weight is published and the current repo does not list them.
- Avoid bait and bought engagement. Engagement bait ("like if you agree") and purchased followers or interactions are the patterns X moderates against. Mutes, blocks and reports carry negative weight.
- Measure what you can. X's own analytics show impressions, engagement rate and profile visits per post. Track which formats and topics drive replies.
Why your reach dropped: a checklist
When reach falls, check these signals of the Twitter algorithm in this order before blaming "the algorithm".
- Negative actions. Recent mutes, blocks or reports on your posts hurt the author.
- Author diversity. Several posts in a row compete with each other, and each one after the first is discounted.
- Reply rate. A run of posts that earned likes but no replies is a signal the posts are not starting conversation.
- Links. Posts whose value is a link click rarely travel.
- Timing against the 48-hour window. A post that gets no early engagement is gone from For You within two days.
- Community Notes. Posts with an active Community Note may see a moderate distribution penalty while the note is on them. Accuracy now affects both reputation and reach.
Where AdLibrary fits
If you run paid ads on X alongside organic posts, study what other brands run before you spend. AdLibrary covers X, with smaller coverage than Meta and TikTok, so use it as one input, not a full map. The X (Twitter) ad library guide shows how to search, how to analyze Twitter ads and mastering X creative analysis cover the workflow, and Twitter (X) ads vs Meta ads in 2026 compares the two paid stacks. Creative that wears out on Meta wears out on X too, so the ad fatigue and creative testing frameworks carry over, and dynamic creative helps keep engagement rate up.
Researching what works on X before you spend? Get started or see pricing.
Frequently Asked Questions
What is the Twitter algorithm's main goal?
It predicts which posts each person is most likely to act on, such as replying, reposting or liking, and ranks For You by that prediction. The current public code describes one model that ranks followed and unfollowed posts together.
Is the Twitter (X) algorithm open source?
Yes. X publishes the code for the For You feed in the xai-org/x-algorithm repository on GitHub. The older twitter/the-algorithm repository holds the 2023 system with Heavy Ranker and SimClusters. The repo is a map of the system, not a live readout of the feed on a given day.
What does the Twitter algorithm rank highest?
In the 2023 published weights, a reply scored 13.5, a retweet 1.0 and a like 0.5, and a reply the author engaged with scored 75.0. The current repo lists the actions it predicts but publishes no numeric weights. Mutes, blocks and reports count against the author.
How long does a post stay in For You?
The current repo filters out posts older than 48 hours before scoring, so two days is the ceiling. X publishes no figure for how quickly a post's reach decays inside that window.
Why is posting too often bad for my reach?
The code applies a decaying factor to each post after an author's first, down to a floor. Several posts in a row compete with each other. No posts-per-day figure is published, so test your own cadence.
Does X Premium affect the algorithm?
Premium subscribers are reported to get a ranking boost, including higher replies in conversations. We have no primary source for how large it is. It amplifies signals your posts already earn and does not replace them.
How do hashtags work on X now?
We have no published weight for hashtags. In practice, one or two relevant hashtags help at most at the margin, and stuffing posts with them does not help. Content and replies carry the post.
Key Terms
- Open Source
- A model where the source code of a software is made publicly available for anyone to view, modify, and distribute, promoting transparency and collaborative development.
- Algorithm
- A set of rules or processes used by a computer to solve problems or perform calculations, in this case, to rank and display content on a social media feed.
- Engagement Signals
- Specific user actions (e.g., likes, shares, mutes, blocks) that the algorithm interprets as positive or negative indicators of content quality and relevance.
- Author Diversity Penalty
- An algorithmic feature that reduces the reach of an author's subsequent posts to a user who has already seen one of their posts recently, designed to diversify content feeds.
- Dwell Time
- The amount of time a user spends looking at a post without scrolling past it. Longer dwell times are a positive engagement signal.
- Reach Score
- A calculated value assigned to a post by the algorithm, based on predicted positive and negative engagement, which determines its overall visibility on the platform.
- Phoenix Model
- The internal name for X's core AI ranking model that predicts user engagement with content to determine feed placement and visibility.
- Author Diversity Penalty
- An algorithmic mechanism that reduces the visibility of multiple posts from the same author within a short timeframe to prevent any single account from dominating a user's feed.
- Engagement Velocity
- The speed at which a post accumulates likes, replies, reposts, and other interactions in the first minutes after publishing. Higher velocity triggers broader algorithmic distribution.
- Shadow Ban
- An unofficial term for when the algorithm progressively reduces an account's content visibility without notifying the account holder, typically triggered by spam-like behavior or policy violations.