About Old MacDonald Had a Farm
Old MacDonald Had a Farm is one of the most beloved public-domain melodies available to play online. Old MacDonald Had a Farm is an American children's song and nursery rhyme about a farmer and the various animals on his farm. The earliest known version was published in 1917 in a book of traditional songs, though the melody and "E-I-E-I-O" refrain likely date to earlier folk traditions. The song's structure — introducing a new animal and its sound in each verse — makes it infinitely extensible and a favorite for teaching children about animals and onomatopoeia.
As a public-domain composition, Old MacDonald Had a Farm can be freely performed, arranged, and studied by musicians of all levels. The melody has endured for generations because of its memorable contour and emotional resonance.
Musical structure and analysis
This arrangement is written in C major at 120 BPM. The song uses a cumulative verse structure. Each verse follows the pattern: introduction of the farm, introduction of the animal, the animal's sound (repeated), and a return to the farm refrain. The melody is in C major with a simple, repetitive contour. The "E-I-E-I-O" refrain serves as a rhythmic and melodic anchor between verses.
Difficulty level and practice tips
Beginner. The melody is entirely in C major with a narrow range. The repetitive structure means you learn one pattern and repeat it for each verse. The rhythm is straightforward quarter notes and half notes.
Learn the basic verse pattern first, then practice adding new animals. The "E-I-E-I-O" section should be rhythmic and bouncy. The animal sounds can be played as rhythmic patterns on a single note. This is a great piece for practicing rhythm and timing in a fun, low-pressure context.
Did you know?
The "E-I-E-I-O" refrain has no agreed-upon meaning. Some musicologists believe it imitates the sound of farm instruments, while others suggest it is simply a nonsense syllable designed to be fun to sing. The earliest known printed version appeared in "Tommy's Tunes" (1917), a WWI-era songbook.
Play Old MacDonald Had a Farm in MIDI Player Online
The demo above plays a simplified single-line melody so you can hear the tune instantly. To explore the full piece with a piano roll visualization, multi-track view, adjustable tempo control and A/B practice looping, load your own MIDI file into the main Online MIDI Player. Everything runs locally in your browser — no upload, no account, no install required. You can also browse our collection of 50 public-domain songs with built-in demo players.
Frequently asked questions
Can I play Old MacDonald Had a Farm online in my browser?
Yes. Use the demo player above to hear this public-domain Traditional childhood song melody instantly, or drop your own MIDI file into the MIDI Player Online tool for full piano-roll playback, tempo control and A/B practice looping. Everything runs locally in your browser — no upload, account or install.
Who composed Old MacDonald Had a Farm?
Old MacDonald Had a Farm is Traditional (Traditional childhood song). It is in the public domain, so it can be freely arranged, performed and used.
What key is Old MacDonald Had a Farm usually played in?
This arrangement is written in C major. The demo above uses that key so you can hear the melody as traditionally performed.
Is a MIDI file version of Old MacDonald Had a Farm available?
Instead of downloading a file, you can hear the melody right here with the built-in player. To practice it, set a slow tempo and use the A/B loop to repeat a section. You can also export or record any MIDI you play from the main MIDI Player Online player.