John Lennon was the dominant early creative force in the Beatles. But Paul McCartney quickly began to catch up as their career together unfolded. George Harrison made a late push into songwriting as well.

So, who wrote the most Beatles songs?

As you'll see, there are individual albums where Lennon and McCartney take center stage. Lennon, for instance, wrote or co-wrote an astonishing 10 songs for 1964's A Hard Days Night. On the other hand, McCartney is credited for the vast majority of 1967's Sgt. Pepper's Lonely Hearts Club Band.

On several occasions, things were in complete equilibrium: 1965's Help! and Rubber Soul, and 1966's Revolver. They basically split the songwriting difference on 1968's The Beatles, too. But there was clearly a sense of competition about things: Lennon would write "Day Tripper" and McCartney delivered "We Can Work It Out"; Lennon brought in "Strawberry Fields Forever," and McCartney countered with "Penny Lane."

All were ascribed to "Lennon-McCartney," creating lingering questions about who did what. One resourceful fan became so desperate to figure it out that he resorted to mathematical formulas.

There have been a few surprising admissions along the way: Lennon later told David Scheff that he had a big hand in creating "Eleanor Rigby," which is typically credited solely to McCartney. ("The first verse was his," Lennon said in his final major interview, "and the rest are basically mine.") Meanwhile, McCartney revealed that he wrote the melody for "In My Life," a track that has become intrinsically linked to Lennon.

We're taking the Beatles' word for it, since they were the only ones in the room – save for producer George Martin and engineers like Geoff Emerick – as their storied discography was created.

The junior members of the Beatles' songwriting stable are also included here, though Harrison didn't begin to make major statements of his own until the group's later era. (The youngest member of the Beatles had only one credit over their first four studio albums – but then made 11 contributions over their final four.) Ringo Starr often sang others' words, but added a handful of songwriting credits as well.

We're focusing on officially released Beatles songs, not bootlegs, radio recordings, anthology extras or songs they gave away. Keep reading to find out who wrote the most Beatles songs: It's a rundown that promises a photo finish.

Please Please Me (1963)
John Lennon (5): "Please Please Me"; "Ask Me Why"; "There's a Place"; "Do You Want to Know a Secret"; co-wrote "Misery"
Paul McCartney (4): "Love Me Do"; "P.S. I Love You"; "I Saw Her Standing There"; co-wrote "Misery"

Considering the majority of this zippy debut album was recorded on a single day – Feb. 11, 1963, to be precise – Please Please Me is a wonder of pop smarts and lyrical wit. Lennon wrote one more song than did McCartney for the final track listing, giving away "Do You Want to Know a Secret" for Harrison to sing.

With The Beatles (1963)
John Lennon (5): "It Won't Be Long"; "All I've Got to Do"; "Not a Second Time"; co-wrote "I Wanna Be Your Man" and "Little Child"
Paul McCartney (4): "All My Loving"; "Hold Me Tight"; co-wrote "I Wanna Be Your Man" and "Little Child"
George Harrison (1): "Don't Bother Me"

Released only a matter of months after the debut, With the Beatles found the prolific Lennon again writing one more tune than McCartney – but McCartney scores the biggest hit with "All My Loving." Harrison makes his songwriting debut, but the throwaway, decidedly standoffish "Don't Bother Me" hardly points to the wonders of his late-'60s output.

A Hard Day's Night (1964)
John Lennon (10): "A Hard Day's Night"; "I Should Have Known Better"; "Tell Me Why"; "If I Fell"; "Any Time at All"; "You Can't Do That"; "I'm Happy Just to Dance With You"; "I'll Cry Instead"; "I'll Be Back"; "When I Get Home"
Paul McCartney (3): "Can't Buy Me Love"; "And I Love Her"; "Things We Said Today"

Harrison vanished just as quickly as he'd appeared, with Lennon taking center stage for the Beatles' first major motion-picture project. McCartney had only three originals, but he made every one count. A Hard Day's Night includes three of his best early songs.

Beatles for Sale (1964)
Paul McCartney (5): "Eight Days a Week"; "I'll Follow the Sun"; "Every Little Thing"; "What You're Doing"; co-wrote "Baby's in Black"
John Lennon (4): "I'm a Loser"; "No Reply"; "I Don't Want to Spoil the Party"; co-wrote "Baby's in Black"

McCartney's ascension as the group's most prolific late-period songwriter was officially underway. This is the first – but certainly not the last – album in which Lennon doesn't dominate, in this case likely because he had run out of gas creatively so soon after A Hard Day's Night. So, Beatles for Sale is heavily populated with cover songs. Harrison is missing again, relegated to singing one of Lennon's tunes.

Help! (1965)
John Lennon (5): "Help!"; "Ticket to Ride"; "You've Got to Hide Your Love Away"; "You're Going to Lose That Girl"; "It's Only Love"
Paul McCartney (5): "Yesterday"; "I've Just Seen a Face"; "The Night Before"; "Another Girl"; "Tell Me What You See"
George Harrison (2): "I Need You"; "You Like Me Too Much"

This album found the Beatles turning a creative corner, and that included Harrison, too. "I Need You" was his most fully formed composition to date. But as with their last movie project, Lennon is firing on all cylinders: Two of his contributions went to No. 1. Meanwhile, McCartney contributes a timeless classic with "Yesterday" – but in a sign of things to come, nobody else performed on it.

Rubber Soul (1965)
John Lennon (8): "Norwegian Wood (This Bird Has Flown)"; "Nowhere Man"; "Girl"; "Run for Your Life"; co-wrote "In My Life," "Wait," "What Goes On" and "The Word"
Paul McCartney (8): "Drive My Car"; "I'm Looking Through You"; "Michelle"; "You Won't See Me"; and co-wrote "In My Life," "Wait," "What Goes On" and "The Word"
George Harrison (2): "If I Needed Someone"; "Think for Yourself"
Ringo Starr (1): co-wrote "What Goes On"

Touring now nearly behind them, the Beatles completed the first project that felt like an album-length experience. This finally gave them the space to experiment with sound and feel, notably on Lennon's sitar-driven "Norwegian Wood." Starr earns his first-ever co-writing credit on the tangy "What Goes On," while Harrison offers a convincing jangle with "If I Needed Someone."

Revolver (1966)
John Lennon (6): "Tomorrow Never Knows"; "And Your Bird Can Sing"; "I'm Only Sleeping"; "She Said She Said"; "Doctor Robert"; co-wrote "Eleanor Rigby"
Paul McCartney (6): "Good Day Sunshine"; "For No One"; "Got to Get You Into My Life"; "Here, There and Everywhere"; "Yellow Submarine"; co-wrote "Eleanor Rigby"
George Harrison (3): "Taxman"; "Love You To"; "I Want to Tell You"

The Beatles's best album is a balancing act of Lennon-McCartney brilliance, as they showcase every element of their songwriting genius. Even the goofy song they gave to Starr is a triumph of childlike wonder. Harrison earns the coveted opening slot with "Taxman," part of a three-song flurry of activity – the most he'd ever have on a single-album Beatles release.

Sgt. Pepper's Lonely Hearts Club Band (1967)
Paul McCartney (9): "Sgt. Pepper's Lonely Hearts Club Band"; "When I'm 64"; "With a Little Help From My Friends"; "Fixing a Hole"; "Getting Better"; "Lovely Rita"; "She's Leaving Home"; Sgt. Pepper's (Reprise)"; co-wrote "A Day in the Life"
John Lennon (4): "Lucy in the Sky with Diamonds"; "Being For the Benefit of Mr. Kite"; "Good Morning Good Morning"; co-wrote "A Day in the Life"
George Harrison (1): "Within You Without You"

McCartney took a leadership role in conceiving and executing this project, and that plays out in the songwriting totals. He even made a key contribution to Lennon's crowning-achievement finale. The increasingly spiritual Harrison didn't think much of the album concept, relegating himself to just one entry for Sgt. Pepper's – and none of his bandmates are featured on his raga-inspired "Within You Without You."

Magical Mystery Tour (1967)
Paul McCartney (4): "Magical Mystery Tour"; "The Fool on the Hill"; "Your Mother Should Know"; co-wrote "Flying"
John Lennon (2): "I Am the Walrus"; co-wrote "Flying"
George Harrison (2): "Blue Jay Way"; co-wrote "Flying"
Ringo Starr (1): co-wrote "Flying"

Originally an EP release in the Beatles' native U.K., Magical Mystery Tour was another McCartney-driven concept. Lennon contributed the titanic "I Am the Walrus" but otherwise was largely silent. (The full-length U.S. version included three stand-alone Lennon singles to balance things out.) "Flying" was the only Beatles instrumental ever released by EMI, and the first-ever song credited to all four members.

The Beatles (1968)
John Lennon (13): "Revolution 1"; "Dear Prudence"; "Glass Onion"; "Julia"; "Cry Baby Cry"; "Yer Blues"; "Happiness is a Warm Gun"; "I'm So Tired"; "Sexy Sadie"; "Everybody's Got Something to Hide Except Me and My Monkey"; "The Continuing Story of Bungalow Bill"; "Revolution 9"; "Good Night"
Paul McCartney (12): "Blackbird"; "Back in the U.S.S.R."; "I Will"; "Martha My Dear"; "Mother Nature's Son"; "Birthday"; "Honey Pie"; "Helter Skelter"; "Why Don't We Do It in the Road?"; "Rocky Raccoon"; "Ob-La-Di, Ob-La-Da"; "Wild Honey Pie"
George Harrison (4): "While My Guitar Gently Weeps"; "Savoy Truffle"; "Long Long Long"; "Piggies"
Ringo Starr (1): "Don't Pass Me By"

Everybody came back from a trip to India with a satchel full of songs – including Starr, who garners his first-ever solo composing credit. It's worth noting, however, that there isn't a single collaborative song here. In many cases, the others simply served as a backing band for the main composer. Some of the songs were even recorded as solo projects. That underscores both the irony of self-titling this project and the issues still to come for a splintering group.

Yellow Submarine (1969)
John Lennon (2): "All You Need is Love"; co-wrote "Hey Bulldog"
Paul McCartney (2): "All Together Now"; co-wrote "Hey Bulldog"
George Harrison (2): "It's All Too Much"; "Only a Northern Song"

The soundtrack to an animated film of the same name included some previously issued songs (including Starr's title track), some songs that had earlier been left on the cutting-room floor (including Harrison's "Only a Northern Song," a Sgt. Pepper-era reject) and one killer rock song ("Hey Bulldog") that somehow found Lennon and McCartney collaborating again like the days of yore.

Abbey Road (1969)
Paul McCartney (8): "You Never Give Me Your Money"; "She Came in Through the Bathroom Window"; "Oh! Darling"; "Maxwell's Silver Hammer"; "Golden Slumbers"; "Carry That Weight"; "The End"; "Her Majesty"
John Lennon: (6): "Come Together"; "I Want You (She's So Heavy)"; "Sun King"; "Mean Mr. Mustard"; "Polythene Pam"; "Because"
George Harrison: (3): "Something"; "Here Comes the Sun"; co-wrote "Octopus' Garden"
Ringo Starr (1): co-wrote "Octopus' Garden"

Recorded after Let It Be but released before, Abbey Road is the sound of the Beatles giving it one more try. Glad they did. Lennon came in with two great ideas ("Come Together" and "I Want You"), then acquiesced to McCartney's soaring Side Two medley concept by handing over some witty unfinished snippets. Harrison's striking pair of contributions, however, make it clear that the center can't hold much longer. Really, it's a miracle that these wildly creative voices had been contained in one unit for this long.

Let It Be (1970)
John Lennon (5): "Dig a Pony"; "One After 909"; "Across the Universe"; "Dig It"; co-wrote "I've Got a Feeling"
Paul McCartney (5): "Get Back"; "Let It Be"; "Two of Us"; "The Long and Winding Road"; co-wrote "I've Got a Feeling"
George Harrison (2): "I Me Mine"; "For You Blue"

A by-then rare Lennon-McCartney co-write on "I've Got a Feeling" was really just a combining of two other stray ideas. Otherwise, Lennon's late-period recession continued: "Across the Universe" had been bouncing around for a couple of years at this point. McCartney wrote the album's two big hits, while Harrison's "I Me Mine" provided a glimpse into his Phil Spector-produced early-solo sound.

Other Beatles Releases
John Lennon (20): "This Boy"; "I Call Your Name"; "Yes It Is"; "I Feel Fine"; "Day Tripper"; "Rain"; "Strawberry Fields Forever"; "Revolution"; "Don't Let Me Down"; "The Ballad of John and Yoko"; "You Know My Name (Look up the Number)"; "Real Love"; and co-wrote "She Loves You," "From Me to You," "I Want to Hold Your Hand," "Thank You Girl," "I'll Get You," "We Can Work It Out," "Baby, You're a Rich Man" and "Free as a Bird"
Paul McCartney (15): "She's a Woman"; "I'm Down"; "Paperback Writer"; "Penny Lane"; "Hello, Goodbye"; "Lady Madonna"; "Hey Jude"; and co-wrote "She Loves You," "From Me to You," "I Want to Hold Your Hand," "Thank You Girl," "I'll Get You," "We Can Work It Out," "Baby, You're a Rich Man" and "Free as a Bird"
George Harrison (3): "The Inner Light"; "Old Brown Shoe"; and co-wrote "Free as a Bird"
Ringo Starr (1): co-wrote "Free as a Bird"

This is where Lennon runs his score back up. He was the principal songwriter on the Beatles' stand-alone singles, whereas the bulk of McCartney's credits are in a collaborative role. Lennon also began the demo that sparked the band's reunion in his absence for "Free as a Bird." The other three Beatles completed the song in the mid-'90s, 25 years after their final sessions together. Back then, they'd gathered to finish recording Harrison's "I Me Mine" – and Lennon wasn't there that day either.

Who Was the Fifth Beatle?