Skip to main content
← Back to blog
by Data Team
guidealgorithmanalytics

How the X/Twitter Algorithm Works in 2026

The Algorithm Is Not a Black Box Anymore

In March 2023, X (then Twitter) did something unprecedented for a major social platform: they open-sourced their recommendation algorithm on GitHub. For the first time, developers and researchers could see exactly how tweets were ranked, what signals mattered, and why some content went viral while similar posts got buried.

Since then, the algorithm has evolved significantly. New signals have been added, weights have shifted, and the platform's priorities have changed under Elon Musk's leadership. But the core architecture remains remarkably similar to what was revealed in that initial code drop.

This article breaks down how X's recommendation system works in 2026 — from candidate sourcing to final ranking — based on the open-source code, public statements from X engineers, and empirical analysis of content performance across millions of tweets.

The Recommendation Pipeline

X's "For You" timeline isn't just a reverse-chronological feed. Every time you open the app, the algorithm runs a multi-stage pipeline to select and rank approximately 1,500 candidate tweets down to the ones you'll actually see.

Stage 1: Candidate Sourcing

The pipeline starts by gathering candidate tweets from multiple sources:

In-Network (50%): Tweets from people you follow. The algorithm selects the most relevant recent tweets from your network using a model called Real Graph, which predicts how likely you are to engage with each person you follow based on your interaction history.
Out-of-Network (50%): Tweets from people you don't follow. This is where discovery happens. Two main approaches are used:

- Social Graph: "What are people similar to you engaging with?" The algorithm looks at users with similar follow/engagement patterns and surfaces tweets they've interacted with.

- Embedding Spaces: Tweets and users are represented as vectors in a high-dimensional space. The algorithm finds tweets whose embedding vectors are close to your interest clusters.

This 50/50 split between in-network and out-of-network content was one of the most surprising revelations from the open-source release. Half of your "For You" feed is content from accounts you've never followed.

Stage 2: Ranking

Once ~1,500 candidates are gathered, a neural network model scores each tweet on the probability of multiple engagement types:

Engagement TypeWeight (Approximate)
Like (Favorite)30x
Retweet20x
Reply1x
BookmarkNot disclosed (estimated 15-25x)
Profile click12x
Link click1x
Time spent reading2-5x (varies)
Video watch time8x (if >50% watched)

The final score is a weighted combination of these predicted engagement probabilities. A tweet that the model predicts you'll like and retweet will score dramatically higher than one you'll merely read and scroll past.

Key insight: Likes carry 30x the weight of replies. This is why engagement bait that generates replies ("What do you think?") actually performs worse than content that generates genuine appreciation (likes and bookmarks). The algorithm literally values a like 30 times more than a reply.

Stage 3: Filtering

After scoring, several filters are applied:

Content moderation: Tweets flagged by automated systems or human moderators are removed or down-ranked
Diversity: The algorithm avoids showing too many tweets from the same author or about the same topic in a row
Negative feedback: If you've previously marked tweets as "Not interested" or muted keywords, similar content gets filtered
Anti-spam: Duplicate content, engagement farming patterns, and bot-like behavior trigger penalties
Author-level filtering: Accounts with consistently low engagement rates get deprioritized

Stage 4: Mixing

The final feed isn't purely ranked by score. X mixes in additional content types:

Ads (inserted at specific intervals)
Who to follow suggestions
Trending topics and events
Community notes on viral tweets
Spaces (live audio rooms)

The mixer ensures the feed feels varied rather than monotonous. Even if the top 20 tweets by score are all crypto discussions, the mixer will intersperse other topics to maintain diversity.

The Signals That Matter Most

Engagement Velocity

The single most important factor for a tweet going viral is engagement velocity — how quickly it accumulates interactions after posting. A tweet that gets 50 likes in its first 10 minutes will dramatically outperform one that gets 50 likes over 24 hours.

This is why posting time matters so much. If your followers are active and engage quickly, the algorithm interprets that early burst as a strong signal and starts distributing the tweet to out-of-network users.

The velocity window is approximately 30-60 minutes after posting. After that, the algorithm has largely made its distribution decision.

The Blue Checkmark Boost

Verified accounts (X Premium subscribers) receive a measurable ranking boost. Based on the open-sourced code and subsequent testing:

Blue checkmark: ~4x ranking boost in the "For You" feed
Business verified (gold): Similar boost plus additional visibility in search
Government/organization: Standard boost

This doesn't mean every verified account's tweets perform 4x better. The boost is applied to the ranking score, which then competes with all other signals. A verified account posting low-engagement content will still underperform an unverified account with genuinely engaging tweets.

However, all else being equal, verification provides a significant advantage. This is one of the reasons X pushes Premium subscriptions so aggressively — it creates a direct financial incentive tied to algorithmic visibility.

Media Type and Reach

Not all tweet formats are created equal:

Images: Tweets with images consistently outperform text-only tweets. The algorithm gives a moderate boost to image content, and users are naturally more likely to stop and engage with visual content. Multi-image tweets (2-4 images) perform slightly better than single images.

Videos: Native video uploads (not YouTube links) receive the strongest media boost. X has been prioritizing video content since 2024. Key factors:

Videos must be uploaded natively (not external links)
Watch time >50% significantly boosts the score
Vertical video performs better on mobile
Optimal length: 30-90 seconds for engagement, 2-5 minutes for watch time

Links: External links are penalized. X wants users to stay on the platform. Tweets with external URLs see significantly reduced distribution compared to the same content without a link. If you must include a link, consider putting it in the first reply rather than the original tweet.

Polls: Moderate boost. Polls generate replies and engagement but the interactions are lower-signal than organic likes/retweets.

Threads: The first tweet in a thread is treated normally. Subsequent tweets get progressively less distribution unless the thread itself generates significant engagement.

Negative Signals

The algorithm also tracks signals that reduce a tweet's ranking:

Unfollows: If people unfollow you after seeing your tweet, that's a strong negative signal. It tells the algorithm your content actively repels users.
"Not interested" feedback: Users can long-press a tweet and select "Not interested." This feeds directly into the filtering stage and reduces similar content in the future.
Muted words: If a tweet contains words that many users have muted, its distribution is reduced. This is particularly relevant for crypto content — terms like "airdrop," "whitelist," and "gm" are heavily muted.
Block/mute of author: If a significant percentage of users who see your tweets end up blocking or muting you, your overall account score drops.
Report rate: Tweets and accounts with high report rates are aggressively down-ranked even before any moderation action is taken.

What Makes a Tweet Go Viral

Based on analysis of tens of thousands of high-performing tweets, several patterns emerge consistently:

1. Strong First Line

The first line of a tweet functions like a headline. It must stop the scroll. Questions, surprising statements, and contrarian takes perform best. The algorithm measures whether users pause their scrolling on your tweet — a clear signal of interest.

2. Engagement Within Your Community

Tweets that get engagement from people you frequently interact with perform better than engagement from random accounts. The Real Graph model weighs interactions from your "strong ties" more heavily. This is why building a genuine community matters more than raw follower count.

3. Quote Tweets Over Retweets

A quote tweet creates a new piece of content that gets its own ranking in the algorithm. A retweet merely re-surfaces existing content. If you want to amplify something while benefiting your own account's algorithm score, always quote-tweet with added commentary.

4. Reply Depth

When your tweet generates not just replies but replies to replies (threaded conversations), the algorithm interprets this as high-quality content that sparked genuine discussion. Surface-level engagement ("Nice!" "True!") carries less weight than substantive back-and-forth.

5. Cross-Cluster Distribution

The most viral tweets break out of their author's typical audience cluster. A crypto tweet that resonates with tech, finance, AND general audiences will dramatically outperform one that only engages crypto-native followers. The algorithm detects cross-cluster engagement and accelerates distribution.

Crypto/NFT Content and the Algorithm

Crypto content has a unique relationship with X's algorithm:

Advantages:

Crypto Twitter is one of the most engaged communities on the platform
Financial content naturally generates high-emotion responses (likes, replies)
News breaks frequently, creating viral moments around price movements

Disadvantages:

Many non-crypto users have muted crypto-related terms
Spam/scam patterns in crypto have trained the algorithm to be cautious with promotional crypto content
External links (to DeFi protocols, exchanges) get penalized
Token/NFT shilling patterns trigger spam detection

What works for crypto content:

Educational threads about technology or market dynamics
Data-driven analysis with charts (native images, not links)
Original research or alpha that hasn't been shared elsewhere
Genuine commentary on market events rather than promotional posts

Practical Tips for Maximizing Reach

1. Post when your audience is active. Check your analytics to find peak engagement windows. For crypto Twitter, this is typically 8-10 AM EST and 2-4 PM EST on weekdays.
1. Engage before you post. Spend 15-20 minutes liking and replying to others before publishing your own tweet. This activates your network and increases the chance of early engagement.
1. Use images, avoid links. Native images boost distribution. External links hurt it. If you're sharing an article, screenshot the key insight and put the link in a reply.
1. Optimize the first line. Your first 100 characters determine whether people stop scrolling. Lead with the insight, not the context.
1. Reply to your own tweet. Adding context in a self-reply keeps people in your thread longer, increasing time-spent signals.
1. Don't delete and repost. The algorithm remembers. Tweets that are deleted and reposted often perform worse than the original would have.
1. Consistency over virality. The algorithm rewards consistent posting patterns. Accounts that post regularly build stronger Real Graph scores with their followers, leading to better baseline distribution for every tweet.
1. Bookmarks are gold. Encourage saves/bookmarks where appropriate. While the exact weight is undisclosed, bookmarks are believed to carry significant ranking weight — potentially between likes and retweets.

Understanding Your Performance

Analyzing which of your tweets perform well (and why) is the most effective way to improve your algorithm positioning over time. X's built-in analytics provide basic metrics, but deeper analysis requires tracking engagement rates, audience overlap, content type performance, and posting time optimization across hundreds of tweets.

Want to track which content formats perform best? XCROP's user analytics endpoints let you analyze engagement patterns across any account — including detailed metrics on tweet performance, audience growth, and content type breakdowns — giving you the data you need to reverse-engineer what works for your specific audience.

Conclusion

X's algorithm is sophisticated but not unknowable. The core principles are clear: create content that generates genuine engagement (especially likes and bookmarks), post consistently, engage with your community, and use native media formats. Understanding these mechanics won't guarantee virality, but it will dramatically improve your baseline performance and help you make informed decisions about your content strategy.

The algorithm will continue to evolve — X regularly adjusts weights and introduces new signals. But the fundamental architecture of candidate sourcing, neural ranking, and engagement-weighted scoring is likely to remain stable for the foreseeable future. Master these fundamentals, and you'll be well-positioned regardless of what specific tweaks come next.