We come from the future
We come from the future

# Mathematically, How Many Different Tweets Could There Ever Be?

There's only so much you can say in 140 paltry characters. So how many possible different tweets are there that could ever be sent?

Randall Munroe has tackled that very question in today's wonderful What If? post. First, a very crude approximation:

Tweets are 140 characters long. There are 26 letters in English-27 if you include spaces. Using that alphabet, there are 27140≈10200 possible strings. But Twitter doesn't limit you to those characters, though. You have all of Unicode to play with, which has room for over a million different characters. The way Twitter counts Unicode characters is complicated, but the number of possible strings could be as high as 10800.

But that would create a jumble of horrible characters that don't make any sense. So what about combinations of those characters that, say, make sense to English speakers? Turns out, that's a very difficult question to answer:

Claude Shannon... had a clever method for measuring the information content of a language. [He] determined that the information content of typical written English was around 1.0 to 1.2 bits per letter. This means that a good compression algorithm should be able to compress ASCII English text—which is eight bits per letter—to about 1/8th of its original size. Indeed, if you use a good file compressor on a .txt ebook, that's about what you'll find.

If a piece of text contains n bits of information, in a sense it means that there are 2n different messages it can convey. There's a bit of mathematical juggling here, but the bottom line is that it suggests there are on the order of about 2140×1.1≈2×1046 meaningfully different English tweets, rather than 10200 or 10800.

That is a staggering number, which would take take a person nearly 1047 seconds to read out loud. And if you want to get a grasp of how long that really is, read Munroe's post. I guarantee you'll be shocked. [What If?]

### DISCUSSION

Bobby Stanley

I doubt that I'm going to be the first to mention the fact that Twitter would crash LONG before that many tweets were tweeted. I would also like to mention that the number is significantly higher.

The besides other metadata such as time (which is important), tweets are indexed by @username. So each user could send that many tweets.

If you can figure out the number of tweets that can be sent per second without crashing the system (3, herp derp) and how long the system has been in use, you can find the number of potential tweets. I doubt that this number would exceed (10^46)^(number of twitter users).