Growth strategy · Guide
How Does the X Algorithm Rank Posts in For You?
Short answer
X's For You feed gathers posts from accounts you follow and from accounts you do not, then a transformer model predicts how likely you are to like, reply, repost, click, dwell on, or follow from each post. The final score is a weighted sum of those predictions, adjusted for author diversity, out-of-network posts and new authors.
Key takeaways
- For You mixes in-network posts (via a component called Thunder) with out-of-network posts found by Phoenix retrieval, SimClusters and a popular-posts source.
- A ranking model predicts many actions per post, including follows and negative actions like mute, block and report.
- The final score is a weighted sum of predicted probabilities; exact weights live in the code and can change.
- Author diversity decay, an out-of-network discount and a new-author boost adjust the ranking.
For years, X's ranking was mostly guesswork for people outside the company. That changed in January 2026, when xAI published the For You algorithm on GitHub under the Apache 2.0 license. A substantial update followed in May 2026. There is no cheat code in the repository. What you get is a map of how the system is put together, and that map is useful for anyone trying to grow.
This guide explains the main parts in plain language and what they mean for your posting. It sticks to what the repository describes. The exact weights live in the code and can change, so no numbers are quoted here.
What are the main stages of the For You feed?
The For You feed works in stages: gather candidate posts, rank them with a model, apply adjustments, and filter for visibility.
At a high level:
- Candidate sourcing: collect posts from accounts you follow and from accounts you do not.
- Ranking: a model predicts how you are likely to respond to each candidate.
- Scoring: predictions are combined into one weighted score.
- Adjustments: diversity, out-of-network and new-author rules shift scores.
- Visibility filtering: a separate step that removes or limits posts for policy reasons.
Visibility filtering is distinct from ranking. A post can score well and still be limited for breaking rules.
It helps to picture this as a funnel. Thousands of posts could reach a given reader at any moment. Candidate sourcing narrows them to a pool worth scoring, ranking orders that pool, and the adjustments shuffle the order so one author or one source does not crowd out everything else. Your post has to survive each step. A post nobody's interests match never enters the pool, and a post that enters but predicts little engagement sinks below the fold.
Where do candidate posts come from?
Candidates come from in-network posts served by a component called Thunder and from out-of-network posts found by Phoenix retrieval, SimClusters and a popular-posts source.
In-network means accounts you follow. Thunder serves their recent posts. Out-of-network means everyone else. Phoenix retrieval represents users and posts as vectors (lists of numbers that capture interests) and finds posts whose vectors sit close to yours. SimClusters groups users and content into interest clusters. A popular-posts source adds widely engaged content.
| Source | Type | What it means for you |
|---|---|---|
| Thunder | In-network | Your followers can see your recent posts |
| Phoenix retrieval | Out-of-network | Posts matched to readers with similar interests |
| SimClusters | Out-of-network | Interest communities your content belongs to |
| Popular posts | Out-of-network | Content already getting wide engagement |
For a small account, out-of-network discovery is everything, because the in-network audience is tiny. Posts that clearly belong to a topic are easier to match with interested readers, which is one reason a focused niche helps.
What does the ranking model predict?
The ranking model, a transformer called Phoenix ported from xAI's Grok-1 release, predicts the probability of many different actions for each post and viewer.
The predicted actions fall into groups:
- Engagement: favorite (like), reply, repost, quote, share, share via DM, share via copy link.
- Clicks: post click, profile click, link click, photo expand, video open.
- Attention: dwell, dwell time, video quality view, profile visit seconds.
- Follow author.
- Negative: not interested, mute author, block author, report.
The final score is a weighted sum of these predicted probabilities. Positive actions raise it. Negative actions are predicted too and feed into the score. The exact weights are in the code and can change between updates, so treat any specific ranking of "which action is worth most" with caution.
Two details in that list deserve attention. First, "follow author" is a prediction in its own right. The model estimates whether a given reader would follow you after seeing a post, which means posts that make your expertise obvious have a direct line into the score. Second, several attention signals are about time: dwell, dwell time and profile visit seconds. A reader who stops for a while on a careful explanation sends a different signal than one who scrolls past after half a second, even if neither of them taps like.
What adjustments change the final ranking?
Three adjustments matter most for creators: author diversity decay, an out-of-network discount, and a new-author boost.
Author diversity decay reduces the score of repeated posts from the same author within a session. If you post ten times in an hour, a given reader is unlikely to see all ten near the top. Spreading posts out gives each one a fairer shot. Posting cadence covers sustainable rhythms.
The out-of-network discount means posts from accounts a reader does not follow start at some disadvantage compared with in-network posts. That is one reason growth gets easier as followers accumulate.
The new-author boost gives some help to authors a reader has not seen before. How much either adjustment moves a score depends on values in the code, so the safe reading is simply that new voices get a path in.
What does this mean for how you post?
Write posts that invite genuine replies, reward reading, and make people curious about you, and avoid posts that trigger mutes or "not interested."
Practical implications drawn from the structure:
- Write for replies. Ask real questions, take clear positions, share specifics people can add to.
- Reward attention. Dwell time and photo expands are predicted, so clear explanations, useful images and threads that hold attention help.
- Make the profile click worth it. Profile clicks and follows are predicted actions, so your profile should convert visitors.
- Stay on topic. Retrieval works by matching interests. A focused account is easier to match.
- Avoid annoying people. Mute, block, report and "not interested" are predicted. Bait, spam and off-topic trend-hijacking risk those signals.
- Space out posts. Author diversity decay means bursts are less efficient than a steady rhythm.
Check post length before you publish. Standard accounts get 280 characters, links count as 23 and emoji as 2. The character counter applies these rules.
How do replies fit into ranking?
Replies are both a predicted action on the original post and posts in their own right, ranked within conversations by separate factors.
When someone replies to your post, that is one of the engagement actions the model predicts. Your own replies under other posts are ranked in their conversation by factors X describes on its Premium help page: Premium subscribers' replies get prioritized ranking (larger for Premium+), alongside whether the original author replied and whether the reader follows the replier. Readers can also sort replies by relevant, recent or liked. The reply strategy guide turns this into a routine.
What can't the open-source code tell you?
The code shows the system's structure, but not the live weights, every production detail, or exactly how your individual post will perform.
Weights can change, models are retrained, and production systems may differ from published code in details. Be skeptical of anyone claiming to know the exact formula or offering a guaranteed hack. Fake engagement does not fit neatly into this picture either. Coordinated likes and follows break X's platform manipulation and spam policy, and visibility filtering is a separate step that can limit posts regardless of score. Why buying followers backfires explains the risks. The full organic system is in how to get free X followers.
Frequently asked questions
Is the X algorithm really open source?
xAI published the For You algorithm on GitHub under the Apache 2.0 license in January 2026 and updated it substantially in May 2026. The repository shows the structure and logic, though production details and weights can change.
What is the most important signal in the X algorithm?
The model combines many predicted actions into one weighted score, and the weights live in the code and can change. Rather than chasing one signal, aim for posts people would reply to, read fully, or follow you for.
Does posting a lot hurt reach?
The ranking includes an author diversity decay, which lowers the score of repeated posts from the same author in a session. Many posts at once may not all reach the same reader.
Do negative actions affect ranking?
Yes. The model predicts negative actions such as not interested, mute author, block author and report, and these feed into the score alongside positive actions.
Sources
Facts checked as of November 2026. X changes features and limits often, so confirm details in the X Help Center. FreeXFollowers is not affiliated with X Corp. How we research.