X Algorithm: How It Works in 2026 and What It Rewards
Short answer: the X algorithm (formerly the Twitter algorithm) is a Grok-based ranking model. For every post it could show you, it predicts how likely you are to take each of about 15 actions: like, reply, repost, follow, and also negative ones like muting. It adds those predictions up with weights and shows the highest scores first. Follower count gets your post into the candidate pool. After that, what wins is how likely each viewer is to engage.
Here is how it works, what changed in 2026, and what it means for what you post.
What changed in the X algorithm in 2026?
X’s ranking used to be a stack of hand-tuned features and rules. That’s gone.
- January 2026: X open-sourced the code behind its For You feed. Ranking is now done by a Grok-based transformer model, often called Phoenix, which learns relevance from how people engage instead of from hand-written rules.
- May 2026: a large update to the open-source release added much more of the scoring code, including the weighted formula described below.
- Since November 2025: the Following feed is also ranked by Grok, not shown in time order. A chronological view is still available if you switch to it.
The practical result: the model reads what your post says and predicts who will care, instead of counting likes.
How is the For You feed built?
It happens in three steps:
1. Candidate sourcing. X collects posts you might see: posts from accounts you follow, and posts from accounts you don’t follow that the model predicts you’ll care about. Your followers are your main in-network audience, so follower count matters here.
2. Ranking. For each candidate, the model predicts the probability of each action: like, reply, repost, quote, follow the author, click, dwell, and negative actions like “not interested,” mute or block. Each probability is multiplied by a weight and summed into one score. Negative actions pull the score down.
3. Filtering and mixing. Duplicates and blocked content are removed. The feed is mixed so one author doesn’t dominate, and posts from accounts you don’t follow are down-weighted a little against those you do.
What does the X algorithm reward?
From the open-source code and how it’s been analyzed, these signals carry the most weight:
| Signal | Effect on reach | What to do |
|---|---|---|
| Follows from a post | Strong positive | Show what people get by following you |
| Replies the author answers | Strong positive | Ask a real question, answer the first replies |
| Reposts and quotes | Positive, spreads past followers | Post things worth passing on |
| Bookmarks and time spent | Positive | Write posts worth saving or reading in full |
| Early engagement | Decides if the post keeps being shown | Post when your audience is online |
| “Not interested,” mutes, blocks, reports | Negative, with similar viewers too | Skip engagement bait |
In more detail:
- Follows from a post. A post that makes someone follow you is one of the strongest positive signals.
- Replies, especially replies you answer. A conversation in which the author takes part is weighted highly.
- Reposts and quotes. These spread a post beyond your followers.
- Bookmarks and time spent. These show the post was worth saving or reading.
- Early engagement. Interactions in roughly the first hour help decide whether a post keeps getting shown.
And what hurts:
- “Not interested,” mutes, blocks and reports. These lower your score with that viewer and with similar viewers.
- Posting several times in a row. The author-diversity step reduces repeat posts from the same account in one session.
- Unclear posts. Because the model reads content, a post that’s hard to place by topic is hard to match to the right viewers.
What should you change in your posts?
1. Stay in one niche. The model matches your posts to viewers by what they’re about. An account that always posts about the same topic is easier to match than one that jumps around.
2. Write for replies, then reply. Ask something your audience has an opinion on, and answer the first replies quickly. Your own replies feed one of the strongest signals.
3. Make every post stand alone. A post should make sense without context, so a stranger in For You gets it. Put links in a first reply instead of the main post. Why the link goes in the first reply.
4. Post when your audience is online. Early engagement matters, so post in your audience’s active windows. Best time to post on Twitter (X).
5. Spread your posts out. Three posts at 9:00, 9:05 and 9:10 compete with each other. Three posts spread across the day each get their own chance.
6. Earn follows, not just likes. Posts that show what people get by following you (a useful series, a clear point of view, results) drive the strongest signal.
7. Don’t game it. Engagement bait, follow-for-follow and automated engagement attract the negative signals the model penalizes, and they break X’s rules.
Does X Premium help with the algorithm?
Premium boosts your replies in conversations, which helps when you’re small and replying under bigger accounts. It doesn’t change how a post is scored. Is X Premium worth it?
How do you write for the algorithm without guessing?
The model rewards posts that match what your niche is engaging with now. You can learn that by reading your niche’s top posts every morning and checking your own best posts every week.
Kalen does that research for you inside Claude or ChatGPT. Your AI writes from his briefing. He scores each draft from 0 to 100 against what’s working in your niche and your best posts, and he spreads the approved posts across your open slots so they don’t compete with each other.
FAQ
How does the X algorithm work?
A Grok-based model predicts how likely each viewer is to engage with each post. It weights those predictions and ranks the highest-scoring posts first in the For You and Following feeds.
Is the X algorithm open source?
Yes. X published the code behind its For You feed on GitHub in January 2026 and has updated it since.
Does follower count matter on X?
It decides how many people see your post first. After that, ranking depends on predicted engagement per viewer, not follower count.
Do links hurt reach on X?
Posts that send people off X tend to get less engagement on X, so many creators put the link in the first reply. See Put Your Link in the First Reply on X.
Is the Following feed chronological?
Not by default. Since November 2025 it’s ranked by Grok, but you can switch to a chronological view.