Lionel Messi is the all-time leading scorer in El Clásico history, with 26 goals against Real Madrid in official matches. No other player is particularly close his closest challengers, Alfredo Di Stéfano and Cristiano Ronaldo, are tied on 18 apiece, eight goals behind.
This article breaks down Messi’s record goal by goal, ranks the fixture’s all-time top scorers, and looks at whether anyone, including Barcelona’s current generation of attackers, could realistically get near his total.
Who Is the All-Time Top Scorer in El Clásico?
Lionel Messi: 26 Goals
Messi scored 26 goals against Real Madrid across his Barcelona career, spread across La Liga, the Champions League and the Spanish Super Cup. He overtook Di Stéfano’s long-standing record of 18 to become the outright leader, and he also holds the record for the most assists in the fixture, with 14. Beyond the raw total, Messi scored two separate Clásico hat-tricks in 2007 and 2014 and found the net at both Camp Nou and the Santiago Bernabéu throughout his career, including arguably the most iconic single goal in the fixture’s modern history, his stoppage-time winner at the Bernabéu in 2017.
El Clásico All-Time Top Scorers
| Rank | Player | Club | El Clásico Goals |
| 1 | Lionel Messi | Barcelona | 26 |
| 2 | Alfredo Di Stéfano | Real Madrid | 18 |
| 2 | Cristiano Ronaldo | Real Madrid | 18 |
| 4 | Karim Benzema | Real Madrid | 16 |
| 5 | Raúl González | Real Madrid | 15 |
| 6 | César Rodríguez | Barcelona | 14 |
| 6 | Francisco Gento | Real Madrid | 14 |
| 6 | Ferenc Puskás | Real Madrid | 14 |
| 9 | Santillana | Real Madrid | 12 |
| 10 | Luis Suárez | Barcelona | 11 |
Real Madrid dominates this list numerically of the top 10, only Messi, César Rodríguez and Luis Suárez represent Barcelona outright (Josep Samitier, who also played for both clubs during his career, appears in some versions of this list but is omitted here for clarity).
Lionel Messi’s El Clásico Goals Breakdown
| Competition | Messi Goals |
| La Liga | 18 |
| Spanish Super Cup | 6 |
| Champions League | 2 |
| Total | 26 |
This breakdown is consistent with Barcelona’s own historical statistics on the fixture.
Messi’s Most Famous El Clásico Goals
Messi’s First El Clásico Goals
Messi’s early Clásico goals came as Barcelona’s Guardiola-era side began to establish its dominance over Real Madrid, setting the stage for the goalscoring record he’d eventually build.
Messi’s Hat-Trick Against Real Madrid
Messi scored the first of his two Clásico hat-tricks on March 10, 2007, at just 19 years old, in a thrilling 3-3 draw at Camp Nou the first player to score a Clásico hat-trick in over a decade. He repeated the feat on March 23, 2014, this time away at the Bernabéu, scoring three (including two penalties) to complete a 4-3 win.
The 2017 Bernabéu Winner
Messi’s most iconic Clásico goal came on April 23, 2017, when he scored a 92nd-minute winner to complete a 3-2 comeback victory at the Bernabéu his 500th goal for Barcelona and celebrated by holding up his shirt to the home crowd.
Messi’s El Clásico Free-Kick Goals
Among his 26 Clásico goals, Messi added free-kicks to his usual mix of open-play finishes and penalties over the years, underlining the range of ways he found the net against Barcelona’s fiercest rivals.
His Most Memorable Goals at the Bernabéu
Beyond the 2017 winner, Messi’s second Clásico hat-trick at the Bernabéu in 2014 stands out as one of his best away-day performances against Real Madrid, delivered in a match that swung back and forth until his 87th-minute penalty settled it.
Cristiano Ronaldo vs Lionel Messi in El Clásico
| Statistic | Lionel Messi | Cristiano Ronaldo |
| El Clásico Goals | 26 | 18 |
| Club | Barcelona | Real Madrid |
| El Clásico Era | 2000s–2010s | 2009–2018 |
| Clásico Hat-Tricks | 2 | 0 |
Who Scored More El Clásico Goals?
Messi, by a considerable margin 26 to Ronaldo’s 18.
Who Had More El Clásico Hat-Tricks?
Messi, with two, in 2007 and 2014. Ronaldo never scored a Clásico hat-trick, though he did hold the record for scoring in six consecutive Clásico matches between the 2011-12 and 2012-13 seasons.
Who Had the Better El Clásico Record?
By goals scored, hat-tricks, and assists in the fixture, Messi’s overall Clásico record surpasses Ronaldo’s. Ronaldo’s tally still ties him for second all-time with Di Stéfano, and his consistency across a shorter, more concentrated period of Clásico meetings (2009–2018) remains historically significant in its own right.
Alfredo Di Stéfano’s El Clásico Legacy
Di Stéfano’s 18 Goals
Di Stéfano scored his 18 Clásico goals during Real Madrid’s dominant era of the 1950s and 60s, and remains the oldest player ever to score in the fixture, finding the net at 37 years old.
His Rivalry With Barcelona
Di Stéfano’s move to Real Madrid rather than Barcelona in the 1950s, amid a contested transfer saga between the two clubs, added extra edge to his Clásico appearances throughout his career.
Messi Breaking Di Stéfano’s Record
Messi surpassed Di Stéfano’s long-standing record during a Clásico in which he also became the second-highest all-time scorer in La Liga history behind Telmo Zarra, moving Messi’s Clásico tally to 21 goals at that point, en route to his eventual total of 26.
Which Barcelona Players Have Scored the Most El Clásico Goals?
Lionel Messi
Barcelona’s outright leader with 26 goals, and the all-time leader for either club.
César Rodríguez
A Barcelona forward from the club’s earlier history, César Rodríguez sits on 14 Clásico goals, making him the club’s second-highest scorer in the fixture.
Luis Suárez
Suárez scored 11 Clásico goals during his Barcelona career, including a hat-trick in the famous 5-1 win at Camp Nou in October 2018.
Other Barcelona Legends
Josep Samitier, who played for both Barcelona and Real Madrid across his career, also features prominently in all-time Clásico scoring lists, though his split allegiance makes direct comparison with single-club players more complicated.
Can Anyone Break Messi’s El Clásico Goals Record?
Twenty-six goals is an extraordinarily high bar, built up over more than a decade of Clásico appearances during Messi’s peak years at Barcelona. For any current player to get close, they’d need a long run of Clásico appearances combined with a consistently high scoring rate against Real Madrid specifically a much narrower requirement than simply being a prolific goalscorer overall.
Barcelona’s current generation, headlined by Lamine Yamal, is the obvious long-term candidate to watch. Yamal has already broken multiple Barcelona youth-goalscoring records, including becoming the youngest player in club history to reach 50 first-team goals. Whether he can translate that pace specifically into Clásico goals over the next decade remains to be seen, and it’s worth treating any such prediction as speculative rather than likely matching Messi’s record would require an extraordinary, sustained run of Clásico performances that very few players in the fixture’s history have managed.
Frequently Asked Questions
Who has scored the most goals in El Clásico? Lionel Messi, with 26 goals for Barcelona against Real Madrid.
How many El Clásico goals does Messi have? 26: 18 in La Liga, 6 in the Spanish Super Cup, and 2 in the Champions League.
Who is second in the El Clásico top scorers list? Alfredo Di Stéfano and Cristiano Ronaldo are tied for second, both with 18 goals for Real Madrid.
How many goals did Cristiano Ronaldo score against Barcelona? 18 goals, scored between 2009 and 2018.
How many goals did Alfredo Di Stéfano score against Barcelona? 18 goals, scored during Real Madrid’s dominant era in the 1950s and 60s.
Who has scored the most goals for Barcelona in El Clásico? Lionel Messi, with 26, ahead of César Rodríguez (14) and Luis Suárez (11).
How many El Clásico goals did Luis Suárez score? 11, including a hat-trick in Barcelona’s 5-1 win over Real Madrid in October 2018.
Can Lamine Yamal break Messi’s El Clásico record? It’s far too early to say. Yamal is already breaking Barcelona goalscoring records at a young age, but matching Messi’s 26 Clásico goals would require a long, sustained run of scoring specifically in this fixture over many years a genuinely difficult record to challenge.
Conclusion
Messi’s 26 El Clásico goals stand as one of the most commanding individual records in football’s biggest rivalry built not from a single explosive spell but from over a decade of consistently showing up in the biggest fixture in Spanish football. Di Stéfano and Ronaldo’s shared second place is a reminder of just how rare it is for any player to threaten that number. For now, Messi’s record looks safe, but with Barcelona’s next generation of attacking talent already breaking club scoring records at a young age, it’s a story worth revisiting as their careers develop.

