Carlo Ancelotti's men were dumped out of the Copa del Rey on Thursday, but the two forwards ensured they bounced back with aplomb.
The Champions League winner was dumped out of the Copa del Rey following a 2-2 draw (4-2 on agg) defeat to Atletico Madrid on Thursday night, but bounced back immediately in La Liga on Sunday.
Getafe belied form which saw the club enter the game without a win in eight league games, although Toni Kroos' half-volley rattled the crossbar just before the break to signal Real's intent.
Needing a win to guarantee top spot with Barcelona playing later in the day, Real eventually found its feet in the second half, with Ballon d'Or winner Ronaldo tapping home after good work from James Rodriguez and Karim Benzema.
The Colombian also set up the second, nodded home by Bale, before Ronaldo benefitted from another James assist, taking his tally for the season to 36.
Looking to put the Copa exit behind it, Madrid was quick out of the blocks with Benzema and Marcelo going close in the opening stages.
Getafe gave the team few troubles, but the Madrid also struggled to find a breakthrough despite its dominance of possession.
Benzema got behind the defense to square for Marcelo from the by line, but the Brazilian's effort was well blocked by Emiliano Velazquez.
The lively French striker saw an angled shot denied by the legs of goalkeeper Jordi Codina, who also had to be alert to tip Isco's speculative 30-yard strike over the bar nine minutes before the break.
Jorge Sammir fired high and wide for the home team following a sweeping breakaway, but Madrid continued to dominate, with Kroos rattling the bar on the stroke of halftime.
Benzema and James tested Codina shortly after the break as Getafe's defense gradually began to tire, with a breakthrough seemingly inevitable.
It eventually came in the 63rd minute as James and Benzema again combined down the left, allowing the Frenchman to hit the byline before pulling back to Ronaldo, who was left with a simple finish from eight yards.
It was no less than the visiting side deserved and the lead was doubled three minutes later, when a superb teasing cross from James on the left was met by an onrushing Bale, who calmly headed home at the far post.
Ronaldo sent a fizzing free kick just wide of Codina's post, but did not have to wait long to double his tally, getting on the end of another brilliant cross from Madrid's Colombian star to head home and seal a comfortable win for Carlo Ancelotti's men.