X reveals the formula for going viral on its platform

Aug 15, 2026 02:29 AM - 1 hour ago 1

In this photograph illustration, the X (Twitter) logo is seen displayed connected a smartphone surface successful the Apple app store.

X unveiled the root codification for the algorithm that determines what shows up connected its For You page. Illustration by Thomas Fuller/SOPA Images/LightRocket via Getty Images

On X, not each engagement is equal.

Elon Musk's societal media institution connected Thursday released the root codification that determines really posts are recommended to users, the latest improvement successful Musk's quest to champion transparency connected the platform.

"The extremity is straightforward — we want group to beryllium capable to reply for themselves whether a level is limiting their reach, whether the strategy is fair, and why they spot peculiar content," the institution said successful an X post.

Musk said connected X that the determination to make X unfastened root was to "improve fairness" and activity feedback for improvement.

Here's a breakdown of what was revealed successful the code.

Positive weights

Posts are classed for a user's For You timeline successful portion based connected really the algorithm predicts that personification will interact pinch them.

The algorithm, which X calls "Phoenix," examines a user's caller viewing history to foretell really that personification will interact pinch a post from an account they don't follow.

If Phoenix predicts a personification will stock the station by copying its URL, the station is awarded a weight astir 40 times arsenic ample arsenic if Phoenix predicts a station will person a "like."

Replies, quotes, and shares by nonstop connection each transportation a weight of 5, which is 10 times the 0.5 weight assigned to a predicted like. For follows, the weight is balanced to 8 likes. For reposts, the weight is 2 likes.

Phoenix combines those predicted probabilities pinch their respective weights to nutrient a ranking score, which X past uses to determine the bid of posts successful the For You feed.

Negative weights

If Phoenix predicts that a personification will show displeasure pinch a post, negative weights will severely limit a post's visibility.

Phoenix treats a predicted "report" arsenic 468 times — successful the other guidance — arsenic a predicted like. A predicted shut up carries a antagonistic weight astir 118 times the size of a predicted like. A 'not interested' relationship is astir 86 times arsenic ample successful the antagonistic direction, and a artifact is astir 62 times arsenic large.

The strategy suggests that "ragebaiting," aliases posting inflammatory contented meant to spur angry replies, mightiness not beryllium a look for increasing a following, which is possibly astonishing fixed X's estimation nether Musk.

Looking nether the hood

Also included successful X's Thursday announcement is simply a aviator characteristic called "Under the Hood," which lets participating users spot aggregate accusation astir labels applied to their relationship and posts that tin impact visibility.

X's root codification shows that its systems categorize contented and accounts crossed categories, including spam and big material. Those labels tin past beryllium utilized by a abstracted strategy erstwhile determining whether a station is shown.

X said the characteristic has only been activated for a "randomized trial group of eligible accounts," and that a wider rollout will dangle connected the feedback the institution receives.

Making X unfastened source

X's Thursday merchandise of its proposal algorithm root codification is the latest push to open-source parts of the platform.

In January, Musk called the algorithm "dumb" and pledged to make the strategy much transparent.

"At slightest you tin spot america struggle to make it amended successful real-time and pinch transparency," Musk wrote connected X. "No different societal media companies do this."

Read next

Truman Dickerson is the Weekend News Fellow astatine Business Insider, based successful New York City. He covers trending tech and business news. He antecedently reported for The Boston Globe's Express Desk. He graduated from Boston University, wherever he served arsenic editor successful main of The DailyPress, BU's student-run newspaper.Contact him astatine [email protected]

More