What does pi sound like? Famous tunes hidden in pi
Play each digit of pi as a note and pi makes music. The openings of famous tunes are in it: the first 10 notes of Ode to Joy at position 1,353,533,097, the first 9 of Happy Birthday 7 times in the first 10 billion digits. Type a tune in notes and hear where pi plays it.

How a digit becomes a note
The ten digits are the ten white keys from middle C up to the E above the next C: 0 is C, 1 is D, 2 is E, 3 is F, 4 is G, 5 is A, 6 is B, and 7, 8 and 9 are the high c, d and e, written in small letters on the map. The first digits after the 3, 14159, play D G D A e.
Press play on any result and its digits sound as a melody, with chords chosen to fit it, in the sound you pick, from piano to music box. Keep playing goes on past the match into the digits that follow, for as long as you listen.
The first 100 digits of pi as notes
To play pi on a piano: the 3 before the decimal point is F, then the first 100 decimals, ten to a row. Small letters are the high c, d and e.
| Digits | Notes |
|---|---|
| 1415926535 | D G D A e E B A F A |
| 8979323846 | d e c e F E F d G B |
| 2643383279 | E B G F F d F E c e |
| 5028841971 | A C E d d G D e c D |
| 6939937510 | B e F e e F c A D C |
| 5820974944 | A d E C e c G e G G |
| 5923078164 | A e E F C c d D B G |
| 0628620899 | C B E d B E C d e e |
| 8628034825 | d B E d C F G d E A |
| 3421170679 | F G E D D c C B c e |
Other versions give the digits other notes, often 1 as C, so the same digits make another tune.
Famous tunes in pi
We typed the openings of well known tunes, all in the public domain, and searched the first 10 billion digits for the longest beginning of each that pi plays:
| Tune, notes found | Times | First at |
|---|---|---|
| Frère Jacques CDECCDECEFGE, 12 of 14 | 1 | 5,151,600,975 |
| Ode to Joy EEFGGFEDCC, 10 of 15 | 1 | 1,353,533,097 |
| Twinkle, Twinkle, Little Star CCGGAAGFFE, 10 of 14 | 1 | 5,060,429,688 |
| Mary Had a Little Lamb EDCDEEEDDD, 10 of 13 | 1 | 9,784,630,234 |
| Brahms' Lullaby EEGEEGEGcB, 10 of 13 | 1 | 6,437,243,649 |
| Happy Birthday GGAGcBGGA, 9 of 12 | 7 | 1,590,888,871 |
| Amazing Grace CFAFAGFDC, 9 of 9 | 11 | 637,779,817 |
| Eine kleine Nachtmusik GDGDGDGBd, 9 of 9 | 16 | 51,977,428 |
| Beethoven's Fifth AAAFGGGE, 8 of 8 | 110 | 71,984,403 |
| Wedding March (Wagner) CFFFCGEF, 8 of 8 | 102 | 26,276,610 |
Frère Jacques is the luckiest. A tune of 12 notes has about one chance in 100 of being in the first 10 billion digits, and its opening is there once, at position 5,151,600,975. Short openings come back often: the eight notes of Beethoven's Fifth, A A A F G G G E, play 110 times.
Why only the opening
Each note is one digit, one in ten, so each note more makes a tune 10 times rarer. In the first 10 billion digits a tune of 8 notes turns up about 100 times, one of 9 notes about 10 times and one of 10 notes about once. From 11 notes on, a tune most likely lies further in, which is why the tunes above stop after 8 to 12 notes.
If the digits of pi behave like chance, as every test so far suggests, every tune is in there somewhere, a whole symphony too, unimaginably far in. No one has proved it yet, as does pi contain every number explains.
The pi song that went to court
In 2011 the musician Michael Blake posted a video, What Pi Sounds Like, that plays the first 31 decimals of pi as notes at 157 beats a minute, and news sites around the world shared it. Lars Erickson, who had written a Pi Symphony in 1992, sued Blake over it. On Pi Day, 14 March 2012, a federal court in Oregon dismissed the case: pi is a fact that no one can own, and so is the idea of playing it as music. What a composer owns are their own choices, the scale, the rhythm and the harmony.
How to type a tune
- Open the music view and type the notes as letters, C D E F G A B, in capitals or not. The map flies to the first place pi plays them.
- Type it in phrases. Letters typed together are a phrase, as in CDEC CDEC EFG EFG. Each note plays one beat, the last of each phrase is held to the end of its bar, and the tune ends on a chord that holds its last note, so Frère Jacques plays as it goes. Notes typed one by one, as E E F G, make one phrase up to a comma.
- Each note takes the nearest octave. The map has ten notes, from middle C to the E above the next C, and each note typed lands as close as it can to the one before, so a leap of a fifth or more may land an octave off.
- White keys only. Sharps and flats have no digit, so type a tune in C major or A minor, or in any key where its notes need none. Amazing Grace starts C F A F A G F D C in F.
- See how far it gets. When a whole tune is not found, the result shows the longest beginning of it that is, and where; tap it to go there and play. The optional Pro plan searches the first 100 billion digits, about one note further.
Type any tune in notes:
Frequently asked questions
What does pi sound like?
Read each digit as a note, 0 as middle C up to 9 as the E above the next C, and pi sounds like a tune that never ends and never repeats. On piknows any result plays as a melody with chords, and it can keep playing into the digits that follow.
Is Happy Birthday in pi?
Its first 9 notes are, 7 times in the first 10 billion digits, first at position 1,590,888,871. The first two lines, all 12 notes, most likely lie much further in.
How do you turn pi into music?
Give each digit a note. On piknows the digits 0 to 9 are the white keys from middle C to the E above the next C, so 14159, the digits after the 3, play D G D A and the high E.
What are the notes of pi on the piano?
On piknows 0 is middle C up to 9 as the E above the next C, so 3.14159 plays F, then D G D A and the high E. This article lists the first 100 decimals as notes, ten to a row.
Can the music of pi be copyrighted?
Not pi itself. In 2012 a US court dismissed a copyright case over a Pi Symphony: pi is a fact no one can own, and so is the idea of playing it as music. A composer owns only the choices of their own piece, such as its rhythm and harmony.
Is every song in pi?
Probably, if its digits behave like chance, but no one has proved it. Each note makes a tune 10 times rarer, so in the first 10 billion digits most tunes are found only for their first 8 to 10 notes.
How do I find a tune in pi?
Open the music view on piknows and type the notes as letters, such as EEFG GFED CC for Ode to Joy, a phrase to a group. The map flies to where pi plays them, and the play button lets you hear them.