One Billion Typewriters
Before we can ask how long it takes to type a sonnet by accident, it helps to get a feel for just how much raw output we're dealing with. So let's set the sonnet question aside a little longer, and just look at the sheer size of what a billion computers, each typing a million random letters a second, actually produces.
Start with the basic multiplication. One billion computers, each managing one million letters every second:
1,000,000,000 × 1,000,000 = 1,000,000,000,000,000
That's a quadrillion letters a second — a 1 followed by fifteen zeroes. Numbers like that don't mean much on their own, so let's translate them into something you can picture.
A fairly full page of ordinary prose holds somewhere around two thousand letters, once you strip out the spaces and punctuation the way we've agreed to do. So divide our quadrillion letters a second by two thousand letters a page:
1,000,000,000,000,000 ÷ 2,000 = 500,000,000,000
Five hundred billion pages of random letters, every second.
Now divide by pages per book. A typical book runs around three hundred pages:
500,000,000,000 ÷ 300 ≈ 1,670,000,000
About one and two-thirds billion books — every single second.
To get a sense of how large that is, consider the Library of Congress, the largest library on Earth. As of its most recent public figures, its collections include more than 41 million printed books and other printed items, spread across roughly 838 miles of shelving. Our billion computers, typing nothing but random letters, produce more books than that in well under a tenth of a second. Run them for one full second, and you've generated the letter-count equivalent of more than forty Libraries of Congress. Every second. Forever.
Now let's have some fun with that pile of books.
Imagine every one of those random "books" gets printed and stacked, one on top of the last, the instant it's finished. A typical book runs about an inch thick along its spine. At one and two-thirds billion books a second, our pile grows by one and two-thirds billion inches every second.
Converted to miles — there are 63,360 inches in a mile — that pile is climbing at a rate of roughly 26,000 miles every second.
For comparison, light itself travels at about 186,000 miles per second. So our tower of random books is climbing skyward at something like one-seventh the speed of light. Not the speed of a rocket. Not the speed of sound. A meaningful fraction of the fastest speed there is.
At that rate, the pile passes the Moon — on average about 239,000 miles away — in around nine seconds.
It reaches the Sun, some 93 million miles distant, in a bit under an hour.
Every step of this arithmetic, with each assumption, is laid out in A Billion Computers: How Much They Type. And if you want to know how long the pile takes to reach Pluto, the nearest star or the edge of the observable universe, see How Far the Pile of Books Gets.
And all of that is just the bookkeeping. What do those books actually say? They're random letters, every one of them. Here and there, some of them spell something: a word, now and then two or three words in a row. Most of them don't. What that amounts to, I'll leave for you to decide — while the stack keeps blasting past the Moon before you've finished your morning coffee.
So now, finally, here's the question this whole book is really about. Somewhere in that avalanche of random letters — a quadrillion of them every second, from a mere billion computers — we're waiting for one specific, particular sequence: the letters of a single Shakespeare sonnet, in order, with nothing else mixed in.
Given everything you've just seen — a pile of books passing the Moon in nine seconds — how long do you think it will take?
Your guess: how long until one of the billion computers types a sonnet?
Last revised 2026-11-16