LearnHow-to

How The Twitter Algorithm Works In 2026: What X's Own Code Rewards, What It Punishes, And How To Reset Your Feed

November 28, 2026

How the Twitter algorithm ranks your posts, read from X's own code: the actions it rewards, the ones that bury a post, and how to reset your For You feed.

You don't have to guess how the Twitter algorithm works anymore.

X publishes the code that builds your For You feed. It's on GitHub in a public repository called x-algorithm, with the list of actions the model predicts, the weight each one gets, and a log of every notable change. Most "algorithm hacks" you'll read online were written before that code was public, or by people who never opened it. So they argue about hashtags and posting times while the real rules sit one click away.

This guide reads it for you, in plain English.

Here's why I'd listen to me on this one. I've been tweeting every day for almost 4 years on the way to a 400,000 following, and every few months I write down what the algorithm seems to reward and change my posting cadence to match. Put those notes next to the code and most of them line up with X's own numbers. A couple of popular beliefs don't.

In this guide you'll get the 3 stages every post goes through, the actions X weighs most (and the 4 that bury a post), what changed in 2026, how I post for it, and how to reset your own feed. Along the way: why Twitter engagement starts with replies, why quote tweets borrow reach, and why the best time to post on X matters less than you think. (And if you'd rather spend your time writing than scheduling, Typeshare for X queues a week of posts in one sitting. You do the writing; the robots do the rest.)

How The Twitter Algorithm Works: The 3 Stages Of The X Algorithm

Every time you open the For You tab, X builds your feed from scratch.

It runs a pipeline for you alone, and your post has to survive all of it to reach anyone. X's README lays it out in order, and once you see the stages, most algorithm advice sorts itself into "true" and "made up."

The x-algorithm repository on GitHub, X's published code for the For You feed
X's open-source feed code, November 2026

Here are the 3 stages, in plain English:

  1. Find. X gathers candidate posts from two places. Recent posts from accounts you follow come from a system called Thunder. Posts from accounts you don't follow come from a retrieval model (Phoenix), from clusters of people who engage with the same things (SimClusters), and from a shared list of popular posts.
  2. Filter. Before anything is scored, X throws out what you shouldn't see: duplicates, your own posts, posts from accounts you block or mute, posts with your muted words, posts you've already seen, and anything older than 48 hours.
  3. Rank. A transformer model reads your recent engagement history and predicts, for every post left, how likely you are to take each of more than 20 actions on it. Those predictions become one score. The top scores win your feed, and a last safety check removes anything labeled for removal.
The 3 stages of the X algorithm: find candidate posts, filter what you shouldn't see, then rank by predicted actions

Two things fall out of this right away.

The first is that your post's life is short. The 48-hour filter means a tweet from Monday morning can't be recommended on Wednesday afternoon. The second is that ranking is personal. The model scores your post differently for every reader, based on what that reader has engaged with lately. There is no single "reach score" sitting on your post.

That's how the Twitter algorithm works: find, filter, rank, for every reader, every time.

What The Twitter Algorithm Rewards: The Actions X Weighs Most

The X algorithm predicts your likes before anyone taps.

For each post, the model estimates how likely this reader is to like it, reply to it, repost it, quote it, share it, open it, follow you, and spend time reading it. Then it multiplies each prediction by a weight and adds them up. Those weights are published in a file called param.rs, and X says cron scripts keep its defaults set to the main production values.

The positive weights in X's param.rs file: favorite 0.708, reply 5.0, the mutual-follow reply boost 15.0, repost 1.0
home-mixer/params/param.rs, read November 28, 2026

Here are the biggest positive weights in that file, as of November 28, 2026:

  • Share via copy link: 20
  • Reply: 5
  • Quote: 5
  • Share via DM: 5
  • Follow the author: 4
  • Share: 2.118
  • Repost: 1
  • Like: 0.708
The X algorithm's positive weights as a bar chart: copy-link shares 20, replies 5, quotes 5, DM shares 5, follows 4, shares 2.1, reposts 1, likes 0.7

One warning before you do math with these. X's own comments in the code say the weights multiply predicted probabilities, not raw counts. A like is far more common than a reply, so its small weight still adds up across a feed. You can't read "1 reply = 7 likes" off this table, and X says so directly about reports and likes.

What you can read off it is the shape. Conversation counts most. A reply, a quote, a share into a DM or a copied link all sit far above a like. And in July 2026 X added a mutual-follow boost that raises the weight on replies when the reader and the author follow each other. It's set at 15 today.

Time spent counts too. The model predicts how long someone will dwell on your post and how long they'll stay after clicking it. Nothing in the published weights punishes a link: opening one carries a small positive weight of 0.2.

So write posts people want to answer, quote and send to a friend. That's what the Twitter algorithm rewards.

What The Twitter Algorithm Punishes: The 4 Signals That Bury A Post

One "Not interested" can outweigh a lot of goodwill.

The same file holds negative weights, and they're big. These are the actions the X algorithm treats as a reader telling it "less of this":

  • Report: -234
  • Mute the author: -58.8
  • Not interested: -53.07
  • Block the author: -31.2
The negative weights in X's param.rs file: not interested -53.07, block author -31.2, mute author -58.8, report -234.0, not dwelled -0.02
home-mixer/params/param.rs, read November 28, 2026

There's a fifth, smaller one: "not dwelled," when someone scrolls straight past without stopping (-0.02).

Remember the warning from the last section. These multiply the predicted chance of the action, and X's code notes that a report is more than 1,000 times rarer than a like, which is why its weight is so large. X also says mass-reporting campaigns do less than people fear: the predictions are personal, and an action only counts when it happens on a post served in someone's Home timeline.

So the mistakes that cost you reach look like this:

  1. Bait that annoys. A rage-bait hook might win replies from some readers and mutes from others. The mutes cost more.
  2. Posting to the wrong crowd. A post that gets recommended to people who don't care earns "Not interested" taps, and the model learns who not to show you to.
  3. Volume for its own sake. Each extra post is another chance to be scrolled past or muted, and (as you'll see next) your fourth post that day starts with a handicap anyway.
  4. Ignoring account health. Separate systems label accounts by how others respond to them, including blocks and reports relative to likes. Those labels feed a visibility check that can drop a post entirely, whatever its score.

X now lets you see some of those labels yourself with its Under the Hood tool, which shows the visibility-limiting labels on your account and posts.

Annoy people and the algorithm notices. Those are the 4 signals that bury a post.

What The Twitter Algorithm Does After The Score: 4 Adjustments

A high score is only the first cut.

After the weighted sum, X adjusts every score before it picks the top posts. These adjustments explain a lot of what writers feel but can't name: why the fifth tweet of the day flops, why new accounts sometimes get a surprise hit, why your reply guy strategy isn't growing your following. There are 4 of them:

What the Twitter algorithm does after the score: repeat-author decay, out-of-network discount, new-author boost and a variety reshuffle
  1. Author diversity. Each post after an author's first in someone's feed is multiplied by a decaying factor, down to a floor. Your second post in a reader's feed is worth less than your first, and your third less again.
  2. Out-of-network discount. Posts from accounts the reader doesn't follow are scaled down. So are replies and reposts from accounts they do follow. Original posts from people you follow get the cleanest shot.
  3. New-author boost. Posts from authors with few impressions are lifted toward a target position. X gives small accounts a foot in the door.
  4. A variety reshuffle. A separate service reorders the final list, giving up a little score so neighbouring posts aren't too similar.

Put the first two together and you get two rules I'd tape to your monitor.

Posting more has diminishing returns. That matches what I saw before I ever read the code: posting 5 times a day got us roughly the same impressions as 2 or 3, and seemed to lower the odds of any one post going ultra-viral.

Original posts travel to strangers. A pre-scoring filter removes reposts and replies from accounts the reader doesn't follow, so a reply reaches your followers at best. Replies still matter for the conversation under your own posts. An original post or a quote post is what puts you in front of new people.

What the Twitter algorithm does after the score is spread the feed around, so give each slot one good post.

What Changed In The Twitter Algorithm: X Algorithm 2026

The X algorithm in 2026 is a different machine from the one people wrote about in 2023.

The code was opened again, rebuilt around a transformer model, and since August 2026 X logs every notable change in the README. That log is the closest thing you'll get to release notes for your reach. Here's what it says changed this year:

The X algorithm in 2026 on a timeline: the mutual-follow reply boost in July, weights published in August, Under the Hood showing legal limits in September, better time-spent prediction and read-through retrieval in October
  • July 10 to 24: the mutual-follow reply boost. X tested boosts of 5 to 20 on replies between people who follow each other, rolled out 20, then settled on 15 after feedback that people saw too little of the World Cup.
  • August 13: the weights went public. The release added the configuration values, the visibility filtering code, the code that trains the ranking model, and SimClusters as another source of out-of-network posts.
  • August 14: what the weights mean. X added comments to the code explaining that weights scale predicted probabilities, so "1 report cancels out 468 likes" is a misreading.
  • September 18: legal limits in Under the Hood. The report now says when a post was withheld in a country after a legal demand, and which country.
  • October 8: better time-spent prediction. The ranking model got better at estimating how long you'll spend on each post.
  • October 13: retrieval trained on read-through. The model that finds out-of-network posts is now also trained to surface posts people read all the way through.

Those last two matter most to a writer. Long, good writing that people finish is now something the model looks for on purpose. That's in line with what I'd been seeing: X Articles get outsized distribution, regularly passing 500 engagements where a short post wouldn't.

Not everyone loves the direction. Cole put it bluntly on Threads: the feed felt filled with sensational, lowest-cognitive-load, polarizing content, and niche creators would have to adapt. The read-through changes are one reason I think a writer still has room.

The X algorithm in 2026 rewards the time people spend with your words. That's the biggest thing that changed.

How I Post For The Twitter Algorithm

My posting cadence on X keeps changing, because the algorithm keeps changing.

I don't chase every rumor. I watch my own numbers, write down what I notice, and adjust. As I wrote at the time, the algorithm seems to change on a weekly basis. A while back, my cadence "with the new algorithm" was 3 posts a day: 1 Article or long-form post, 1 quote tweet with a new angle, and 1 standalone tweet I wanted to go viral. Then I cut back.

How I post for the Twitter algorithm: before, 3 to 4 tweets a day with less reach per post; now 2 tweets a day, 3 X Articles a week, quote tweets in between and replies to the first comments

Here's what I post today, and the part of the code each habit lines up with:

  • 2 short posts a day, at 8:30 AM and 8:30 PM ET. Down from 3 or 4, because volume is marginally punished. That's the author-diversity decay at work.
  • 3 X Articles a week, at 10 AM ET. They get outsized reach, and the October changes reward posts people read to the end.
  • 5 to 7 quote tweets a week, unscheduled. Quote tweets of viral posts borrow the original's distribution, and a quote carries the same weight as a reply (5). When a viral question deserves an answer, I quote it.
  • Replying to the first 3 to 5 real comments, fast. Replies carry one of the biggest weights (5), and X's help center says it ranks replies higher when the original author has replied.

The code also settles two popular beliefs. In the published weights, opening a link counts a little in your favor. And each extra post in the same feed starts behind, because of the decay.

Our Write With AI newsletter put the quote-tweet point this way: every viral post in your niche is a data point someone else has already validated, and right now the X algorithm rewards building on it. Just add a take worth reading, or the mutes will cancel the borrowed reach.

If you want to run this cadence without living on X, Typeshare lets you write the week's posts in one sitting and set your X times once. It also publishes X Articles from the Long Form editor and can schedule the quote posts that share an Article before it's out.

That's how I post for the Twitter algorithm: fewer posts, longer reads, more conversation.

How To Reset The X Algorithm On Your Own Feed

There's no reset button.

X doesn't have one, and clearing your app's cache won't do it. But the code tells you exactly what your feed is built from: your recent engagement history, who you follow, your blocks and mutes, your muted words, and the topics you follow. Change those inputs and the feed follows. Here's how to reset the X algorithm, step by step:

How to reset the X algorithm: switch to Following, tap Not interested, mute words and accounts, edit your Interests, prune who you follow, and engage with what you want more of
  1. Switch to the Following tab for a while. X's help center says the Following timeline shows only accounts you follow, newest first, with no personalization. It's the cleanest break you can make today.
  2. Tap "Not interested in this post" every time. It's one of the heaviest negative weights in the ranking (-53.07), and X says reporting content you're not interested in is how you influence what it shows you.
  3. Mute words and accounts. Muted words remove matching posts from your Home timeline before they're scored. On the app: Notifications, the gear icon, Muted, Muted words, Add, and switch on Home timeline.
  4. Edit your Interests. In Settings and privacy, go to Privacy and safety, then Content you see, then Interests, and untick the topics that no longer fit. You have to untick them one by one.
  5. Prune who you follow. Thunder brings in the recent posts of every account you follow. An old follow list keeps feeding you the topics you're trying to leave.
  6. Engage on purpose. The model reads your recent engagement history first. Like, reply to and read the posts you want more of, and scroll past the rest without stopping.

Give it a week or two of steady signals. The model updates from what you do, not from a single setting.

And if you'd rather skip the For You feed altogether, do what I've told people for years: never scroll the timeline. Keep a List for each of your interests, pin those Lists to the top, and read those instead. The algorithm can't push you around in a feed you built yourself.

That's how to reset the X algorithm: change what it learns from.

FAQ

How does the Twitter algorithm work in 2026?

X gathers recent posts from accounts you follow and recommended posts from accounts you don't, filters out what you've blocked, muted or already seen (and anything older than 48 hours), then ranks the rest with a transformer model that predicts how likely you are to like, reply, repost, quote, share, follow or keep reading. The weights for each action are published in X's open-source code.

What does the X algorithm reward most?

In X's published weights, sharing a post by copying its link (20), replies (5), quotes (5), DM shares (5) and follows (4) carry the most weight. A like carries 0.708. The weights multiply predicted probabilities, so read them as priorities, never as exchange rates.

How do I reset my Twitter algorithm?

There's no reset button. Switch to the Following tab, tap "Not interested in this post" on what you don't want, mute words and accounts, untick topics in Settings and privacy > Privacy and safety > Content you see > Interests, unfollow accounts you've outgrown, and engage with what you want more of. The feed shifts as the model learns from your new activity.

Can you reset the Twitter algorithm completely?

Not in one tap. The For You feed is rebuilt every time you open it from your recent engagement, follows, mutes and interests, so a full reset means changing all of those. The Following tab gives you an unpersonalized feed right away.

Do links hurt reach on X?

Not in the published ranking weights: opening a link carries a small positive weight (0.2). A link post can still get less reach if readers don't engage with it, so give people a reason to reply or quote it.

Does posting more often help with the X algorithm?

Not much. X's code multiplies each post after an author's first in a reader's feed by a decaying factor. In my experience, 5 posts a day got roughly the same impressions as 2 or 3, so I post twice a day.

Does X Premium help with the algorithm?

X's help center says replies from X Premium subscribers can be ranked higher in a conversation. The published For You weights don't list a Premium boost. You do need Premium to publish X Articles, which get outsized reach.