The Dodgers remained 2 1/2 games behind NL West-leading San Francisco.
Betts drove in four of the Dodgers’ five runs. He had a sacrifice fly in the third that made it 2-0.
Fernando Tatis Jr. slugged a two-run shot, his NL-leading 38th, on the first pitch from Walker Buehler that tied the game at 2 in the fourth.
Buehler (14-3) allowed two runs and six hits in seven innings. The right-hander struck out five and walked two.
“Tonight probably wasn’t my best,” said Buehler, whose 2.31 ERA is three points behind NL leader and teammate Max Scherzer. “Kind of forget about it now.”
Buehler drew a key walk from Chris Paddock that set up Betts, who blasted his 20th homer on the first pitch from Craig Stammen.
Paddock (7-7) got the first two outs of the fifth and then Gavin Lux singled. He walked Buehler on four pitches before getting pulled, having thrown 30 more pitches than Buehler at that point.
“Still kind of fighting getting back into the groove after that long month off,” said Paddock, making his third start since coming off the injured list with a left oblique strain. “Last start the velo was down as well against the Astros. Just kind of going though a little dead arm.”
Paddock gave up four runs and three hits in 4 2/3 innings. The right-hander struck out four and walked two.
Kenley Jansen retired the side in the ninth for his 32nd save.
Betts was solid defensively, too. He made a shoe-top catch of a sinking liner from Trent Grisham with a runner on second to end the seventh.
The Padres closed to 5-4 in the eighth on back-to-back RBI singles by former Dodger Manny Machado and Tatis off Blake Treinen. Joe Kelly came in and struck out Wil Myers and Tommy Pham on a combined seven pitches to strand Tatis at third.
“When Joe Kelly is healthy, he’s pretty electric and he showed that,” Buehler said.
Machado had three hits, scored two runs and drove in another.
“The way Manny and Tatis swung the bats for us, that was encouraging,” Padres manager Jayce Tingler said. “Got to hope that some of that becomes contagious up and down the order.”
By Beth Harris