How the X algorithm ranks posts in 2026
X publishes the code behind its For You feed, including the weight it gives to each thing a viewer might do with a post. Here is how a post gets shown, from that code, and what it means for what you write.
How a post reaches the For You feed
- Candidates. Recent posts from accounts the viewer follows, and posts from accounts they don't follow found by retrieval models, plus a shared list of popular posts.
- Filters. Before anything is scored, X drops posts older than 48 hours, posts the viewer has already seen, posts from accounts they blocked or muted, posts with their muted words, duplicates, their own posts, replies and reposts from accounts they don't follow, and subscriber-only posts they can't open.
- Scoring. A transformer model predicts, for each post, how likely this viewer is to take each action: reply, share, follow, mute and so on. The score is each probability times its weight, added up.
- Adjustments. Each further post from the same author in one feed counts for less. Posts from accounts the viewer doesn't follow are discounted, and so are replies and reposts shown from accounts they do. Authors with few impressions so far get a lift.
- Visibility. Last, rules decide for each post and viewer whether to show it, add a notice, put it behind a warning, or drop it. They read labels from X's other systems, its spam labels among them, and some apply only when a post is recommended to people who don't follow the author.
The weights
What each predicted action is worth in the score, from X's weights file as synced on 20 November 2026.
| Action | Weight |
|---|---|
| Share by copying the link | 20.0 |
| Reply | 5.0 |
| Reply between two accounts that follow each other | +15.0 more |
| Quote | 5.0 |
| Share by DM | 5.0 |
| Follow the author | 4.0 |
| Share another way | 2.118 |
| Repost | 1.0 |
| Like | 0.708 |
| Time spent after clicking in | 0.385 |
| Click into the post | 0.274 |
| Open a link | 0.2 |
| Expand a photo | 0.05 |
| Dwell on the post | 0.05 |
| Click the profile | 0 |
| Watch the video | 0 |
| Report | −234.0 |
| Mute the author | −58.8 |
| Not interested | −53.07 |
| Block the author | −31.2 |
| Scroll past without stopping | −0.02 |
The weights multiply the predicted chance of each action for one viewer; they are not counts. The file also defines experiment overrides, so some viewers may be scored with other values.
What it means for what you post
- Write things people want to pass on. Copying a post's link to share it is the heaviest positive action, and a share by DM counts as much as a reply. Specific, useful posts get sent to someone.
- Aim for replies and quotes, not likes. A reply is worth about seven likes. A question people can answer, or a view with a reason behind it, earns replies; a statement to nod along to earns likes.
- Talk with the people who follow you back. A reply between two accounts that follow each other adds 15 on top of the reply itself. Answer the replies you get, early.
- Don't make people hide you. One “not interested” outweighs about seventy-five likes, and a mute or a report weighs more still. Off-topic posts, ragebait and piles of tags cost more than they earn.
- The first two days decide it. After 48 hours a post isn't shown in For You at all. Post when your field is reading, and stay for the replies.
- Space your posts out. Each further post from you in the same feed counts for less, so two posts close together compete with each other.
- Make following an easy choice. A follow is worth 4. A clear subject, kept to, tells a new reader what they get by following.
- Write like yourself. X's spam labels cover posts that read as machine-written and replies posted unusually fast, and visibility rules can cut such accounts off from people who don't follow them. Why we never schedule or post for you has more.
What XGigabrain does with it
- When to post shows the hours your field reads most, in your own time zone, and when you last posted.
- Post drafts rest on what your field is talking about today, so they give people something to reply to and pass on, and the shape line shows how that kind of post does in your field.
- Replies start with fresh posts moving fast for their author's size, and with the people you already talk to.
- Every draft is written from your own posts and checked for machine-written phrasing before you see it.
Questions
Does X really publish its algorithm?
X publishes the code behind its For You feed on GitHub, including a file of the weights it gives to each action. The numbers here are from that file as synced on 20 November 2026. The file also defines experiment overrides, so some viewers may be scored with other values.
Do likes matter?
Less than most people think. A like weighs 0.708; a reply weighs 5.0, a quote 5.0, a share by DM 5.0 and a share by copied link 20.0.
How long is a post shown in For You?
Up to 48 hours. Older posts are filtered out before scoring, so the first two days decide how far a post travels.
Do links hurt reach?
The weights file has no penalty for a link as such, and opening one counts a little (0.2). A post is scored on what viewers are predicted to do with it, so a post that sends people away before they reply or share earns less of what counts.
Does X penalise AI-written posts?
X's spam rules include a label for posts that read as machine-written, and visibility rules can limit how such posts and accounts reach people who don't follow them. The thresholds aren't in the published code.
Sources
Checked on each source's own page on 23 November 2026. Rules and prices change; the linked pages are the final word.