It moved them several places up the Championship table and all of a sudden mid-table security is within touching distance.
It was a vital three points and gave the impressive travelling Millers an early Christmas present.
Here is that win dissected in numbers.
2 - The number of away wins in the Sky Bet Championship for the Millers so far this season.
3 - The number of games in a row where boss Steve Evans has picked the same starting XI.
3 - The number of games the Millers have now won on a Saturday afternoon this season.
3 - The number of games this season where the Millers have gone in at half-time leading.
3 - The number of away games the Millers are undefeated in.
3 - The number of Millers wins at Wigan's DW Stadium from four visits.
4 - The number of goals Alex Revell has scored this season after he ended a eight-game drought.
5 - The number of games where the Millers have scored two goals or more this season.
5 - The number of points between the Millers and the relegation zone after a vital win against a lower-table rival.
6 - The number of first-half goals the Millers have scored this season after Tom Lawrence's 40th-minute strike.
6 - The number of shots the Millers had on target during the 90 minutes at DW Stadium.
6 - The number of games Millers skipper Craig Morgan has now gone without picking up a yellow card, his best run of the season.
6 - The number of nerve-wracking minutes of added time the Millers had to endure at the end.
9 - The number of games from the last 11 where on-loan midfielder Anthony Wordsworth has not even made the matchday squad.
9 - The number of away games since the Millers last tasted success on the road, the 1-0 win at Millwall in August.
10 - The number of different Millers players who have found the net this season after Lawrence's first goal for the club.
13 - The total number of shots the Millers had at Scott Carson's goal.
19 - The position in the table the Millers now occupy after this win, moving up two spots.
65 - The number of days between Rotherham's win over Leeds and this one over the Latics, a run of 10 matches.
87 - The number of seconds between Ben Watson's equaliser for Wigan and Revell's winner.
352
– The number of minutes between the Millers' last away goal, way back at Brighton on October 25, and Lawrence's opener.
1,543 - The number of Millers fans who made the trip to the DW Stadium.