SANTA CLARA, California — Kyle Allen lost his first game as Panthers starting quarterback as Carolina fell to the 49ers in San Francisco, 51-13.
San Francisco (7-0) scored on their first possession and never looked back, putting up double digits in all four quarters.
Meanwhile, the 49ers defense dominated Carolina (4-3) with Allen throwing three interceptions. He was also sacked seven times.
Down 27-3 at halftime, the Panthers briefly stole the momentum in the third quarter. After a Bruce Irvin safety, Christian McCaffrey 40-yard touchdown and McCaffrey two-point conversion, Carolina was within striking distance, down 14.
But the 49ers answered with a 75-yard drive ending in a Deebo Samuel touchdown run to go up 34-13.
McCaffrey was again a bright spot for Carolina, with 155 total scrimmage yards, bolstered by 117 rushing yards.
Carolina returns home Nov. 3 to take on the Tennessee Titans.
Cam Newton, who missed the last 5 games with a foot injury, spent the week leading up to the San Francisco game rehabbing and made his first road trip of the year. He may be ready for action against Tennessee.
Tevin Coleman scored three of his four touchdowns in the first half, rookie Nick Bosa had three sacks to go along with an acrobatic interception and the San Francisco 49ers remained unbeaten in their highest-scoring game in 26 years.
The Niners (7-0) are off to their best start since winning their first 10 games in 1990 but still faced questions because five of those first six victories came against teams that have losing records.
But San Francisco delivered perhaps its most complete performance of the season against the streaking Panthers (4-3), who had won four straight games and featured one of the league's top defenses.
Jimmy Garoppolo and the offense had little trouble carving Carolina's defense with 232 yards rushing and a pair of touchdown passes for San Francisco's most prolific offensive game since beating Detroit 55-17 on Dec. 19, 1993. The Niners stellar defense did the rest.
San Francisco intercepted three passes from Allen, who came into the game with no interceptions on 153 career attempts while winning his first five starts in place of Newton. They also had seven sacks, with Bosa getting three of them to go along with his leaping interception and 46-yard return on the final play of the third quarter.
Coleman did most of the rest of the damage. He scored on a 19-yard run in the first quarter, added a 10-yard catch in the second quarter, broke the game open with a 48-yard run late in the first half and added a 1-yard run late in the third quarter.
Coleman finished with 11 carries for 105 yards and two catches for 13 yards. He became just the fourth 49ers player to score at least four touchdowns in a regular-season game, joining Jerry Rice (1993, 1990) and Billy Kilmer (1961). Rice holds the team record with five TDs against Atlanta in 1990.
Receiver Deebo Samuel added a 20-yard touchdown run on a nifty inside handoff that tricked Carolina and Raheem Mostert scored on a 41-yard run that made it 51-13 in the fourth quarter.
Garoppolo finished 18 for 22 for 175 yards with TD passes to Coleman and Emmanuel Sanders.
Allen went 19 for 37 for 158 yards on a day that Newton was able to take warmups before the game in a sign that he could be close to being ready to return from a foot injury that has sidelined him since Week 2.
Christian McCaffrey was the lone bright spot on Carolina's offense with 117 yards rushing and a TD and 38 yards receiving.
IMPRESSIVE DEBUT
The 49ers made a trade earlier in the week to acquire Sanders from Denver and it paid off almost immediately. Sanders caught two passes on the opening drive, including a 4-yard TD from Garoppolo. He finished with four catches for 25 yards.
HARD HIT
Niners kickoff specialist Mitch Wishnowsky got called for a rare personal foul when he was called for lowering his helmet to initiate contact on Carolina returner Reggie Bonnafon in the second quarter. That gave the Panthers the ball at the 49ers 47 to start the drive but a holding penalty on Trai Turner wiped out a long run by McCaffrey and a sack by D.J. Jones led to a stalled drive for Carolina.
INJURIES
Panthers: WR Jarius Wright left with a leg injury in the second half.
49ers: RB Matt Breida left after injuring his ankle late in the first half. ... RB Jeff Wilson left in the fourth quarter with a head injury.