Good News Tommy and a cheerful conductor ride a colorful steam train through the mountains, joined by Storybooksong characters waving from the windows as a bluebird flies overhead.

I’ve Been Working on the Railroad: The Surprising History of an American Classic

Tom Radd

There’s something irresistible about “I’ve Been Working on the Railroad.” From its familiar opening melody to the cheerful calls of “Dinah, won’t you blow your horn?” and the playful sound of a train whistle, it’s one of those classic American songs that children love to sing.

But where did this beloved railroad song come from? Was it really sung by railroad workers? Who was Dinah? And how did a song from nineteenth-century America become a children's favorite more than a century later?

The story takes us back to the great age of American railroads, when steam locomotives were transforming the country and connecting distant communities in ways earlier generations could scarcely have imagined.

Where Did “I've Been Working on the Railroad” Come From?

One of the earliest documented versions of the song appeared in 1894 in Carmina Princetonia, a collection of songs associated with Princeton University.

Interestingly, it wasn't called “I've Been Working on the Railroad.” It appeared under the title “Levee Song.”

Princeton University Archives has also documented performances of an earlier version by the university's Glee Club in 1892, suggesting that the song was already circulating before its 1894 publication.

The original songwriter remains unknown, and historians have not established exactly when or where the melody was first created.

Although the song is often described as a traditional railroad workers' song, there isn't conclusive evidence that it actually originated among railroad laborers. What we do know is that the familiar railroad chorus was already present in the 1894 publication.

That makes this American classic at least 132 years old in 2026, based on its earliest known printed appearance.

The Great American Railroad Era

To appreciate the song, it helps to imagine America during the nineteenth century.

Railroads were among the most important technological developments of the age. Before the railroad network expanded, traveling long distances could mean spending days or weeks on horseback, in wagons, or aboard boats.

Steam locomotives changed all that.

Railroad tracks stretched across mountains, valleys, forests, and open plains. Towns grew around railway stations, goods traveled farther and faster, and families gained new opportunities to journey across the country.

One of the most significant milestones came on May 10, 1869, when the first transcontinental railroad was completed at Promontory Summit, Utah.

The achievement connected the eastern railroad network with the Pacific Coast, dramatically changing transportation and commerce across the United States.

It was also an era of extraordinary human effort. Building and maintaining railroads required thousands of workers, often performing exhausting and dangerous labor.

Against that historical backdrop, the song's references to long working days, early mornings, whistles, and railroad crews take on a special meaning.

Who Was Dinah?

One of the song's most recognizable characters is also one of its greatest mysteries.

Who exactly was Dinah?

No reliable historical evidence identifies her as one particular person. Her name appeared in older American songs, and the familiar children's version eventually brought together several musical refrains.

One of those additions was the well-known “Someone's in the kitchen with Dinah” section, which folk-music researchers identify as coming from another song.

Over the decades, different singers and performers adapted the words, and the version most families recognize today gradually took shape.

That is part of what makes traditional music so fascinating. Songs can travel through generations, picking up new words, melodies, and meanings along the way.

Why Children Still Love This Railroad Song

There are good reasons “I've Been Working on the Railroad” has remained a children's favorite.

The melody is memorable, the chorus is easy to repeat, and the rhythmic words practically invite children to move along with the music.

And then there's that wonderful train whistle!

Children can pretend they're driving a locomotive, turning enormous wheels, or riding across the countryside. The song combines music, imagination, and movement in a way that feels natural and fun.

For parents, it's also an opportunity to introduce a little American history through a song children already enjoy.

Giving an American Classic a New Storybooksong Adventure

When I created my Storybooksong version of “I've Been Working on the Railroad,” I wanted to do more than record another rendition of a familiar children's song.

I wanted to add something of my own while preserving everything that made the original so memorable.

As a songwriter, one of the things I enjoy most is finding ways to build on a traditional melody without losing its original character. I wanted my new lyrics to feel as though they belonged right alongside the familiar verse and chorus.

So I wrote an entirely new verse that brings the old steam locomotive to life.

I imagined the enormous steel wheels turning, the train chugging along miles of railroad tracks, and the unmistakable smell of coal burning as the engine traveled through the countryside.

Instead of simply telling children that someone is working on the railroad, I wanted them to picture the locomotive itself.

And I had a little fun with Dinah, too!

In my version, Dinah takes on a new personality. She's the steam locomotive, and when she blows her stack, she's really letting off steam!

I particularly enjoy that little twist because it gives a familiar name from the traditional song a new meaning while keeping the playful spirit of the original.

From Town to Town, From Sea to Shining Sea

But I wasn't finished with the song.

I also wrote a new musical bridge, and this time I wanted to take the adventure beyond the railroad tracks.

When I was writing that section, I was thinking about nineteenth-century America, the country's westward expansion, and the historical idea of Manifest Destiny.

I thought about the tremendous role railroads played in connecting distant regions of the country, especially following the completion of the first transcontinental railroad in 1869.

And I wanted the music to capture that feeling of traveling across an enormous landscape.

That's where the idea of taking our imaginary train across America, from town to town and from sea to shining sea, came from.

The expression “sea to shining sea,” famously associated with Katharine Lee Bates's “America the Beautiful,” felt especially appropriate. Bates wrote her poem in 1893, just one year before the documented 1894 publication of “Levee Song.”

That historical connection appealed to me as a songwriter.

My new bridge wasn't intended to explain the original song's origins. It was my own musical interpretation of the great American railroad era, turning a familiar sing-along into a journey across the country.

And just as importantly, I wanted the new section to sound like a natural extension of the song rather than something that had been added simply for the sake of making it longer.

A Song I'm Especially Proud Of

Of all the songs I've recorded for Storybooksong, “I've Been Working on the Railroad” holds a special place in my heart.

I'm particularly proud of the additional verse and musical bridge because I feel they capture the same voice and spirit as the traditional song.

That was always my goal.

I didn't want listeners to feel as though they were suddenly hearing an entirely different composition. I wanted the new lyrics to flow naturally from the familiar ones, as though they had always been part of the adventure.

Seeing this become Storybooksong's most popular song has been especially rewarding.

As a songwriter, there's something wonderful about taking a melody that generations of families already know, contributing something new, and seeing children and parents respond to it.

I can't say exactly why one song connects with an audience more than another, but I like to think that the additional lyrics, the musical arrangement, and the animated adventure have all helped give this classic a fresh life.

And knowing that families are enjoying it makes me very happy.

Watch Storybooksong's “I've Been Working on the Railroad”

Climb aboard and enjoy our animated musical adventure, featuring the traditional favorite with my additional lyrics and music!

Visit our I've Been Working on the Railroad song page to read the complete lyrics and enjoy the music.

The Good News for Parents

Traditional children's songs are more than catchy melodies. They're little pieces of history that connect generations.

“I've Been Working on the Railroad” offers families an opportunity to explore the fascinating story of American railroads while enjoying music, rhythm, and imaginative play.

And it's also a reminder that traditional songs can continue to grow. A familiar melody can inspire new verses, new arrangements, and new adventures for children discovering it for the very first time.

So the next time your family sings this American classic, imagine those steel wheels turning, the steam rising into the sky, and a magnificent locomotive setting off across the countryside.

There's a whole world of musical adventure waiting just beyond the next bend in the tracks.

All aboard!

Sources & Further Reading

Princeton University Archives — Score of “Levee Song” (1894). The surviving published score in Carmina Princetonia.

Princeton & Slavery Project — The Minstrel Tradition at Princeton University. Research into the early history and performances of the song.

Smithsonian Folkways — Pete Seeger: American Favorite Ballads, Vol. 1. Historical liner notes discussing the song's origins and the addition of the Dinah refrain.

National Park Service — Golden Spike National Historical Park. History of the completion of the first transcontinental railroad.

Back to blog