If Cardiff had one eye on the calculators and results in other parts beforehand, two minutes in they were made aware that they ought to have kept a closer eye on the opposition.
Ben Cohen will not have scored many easier tries, accepting Nick Beal's well-timed pass after Paul Grayson's loop had split the defence, and the winger strolled over in the left corner.
Cardiff, who needed to win and score at least two tries to have any chance of a quarter-final place, never really recovered, although Iestyn Harris kept them in contention with a marvellous kicking performance.
He hit a long, straight penalty in the 11th minute as Cardiff worked up some momentum; a minute later, Paul Grayson missed an identical chance.
For a team with no incentive but pride, the Saints showed verve and imagination as they set about spoiling Cardiff's European ambitions. Harris's line-kicks under pressure were poor, as Northampton camped on the 22. He did better in the opposition half, though, before setting up a series of raids that saw Saints concede a penalty, hands in the ruck, that he had little trouble converting to peg back the lead.
Nick Beal hit Harris high, but the stand-off carried on. At the next break down, the referee awarded Cardiff a penalty and Harris, from an angle, put Cardiff ahead by two points. It was a rare passage of dominance for the visitors.
Grayson reclaimed the lead five minutes later with an easy penalty, only for Harris to take the lead back with a huge 45-metre effort in a swirling crosswind four minutes before the break. Grayson, who had missed a couple, landed for a 13-12 lead at half-time.
The referee was right in awarding a penalty try to Saints in the second minute of the second half, when Craig Morgan coat-hangered Peter Jorgensen as the centre was about to deliver a pass to the unmarked Cohen with the line open. Grayson converted for a 20-12 lead.
Harris landed another long penalty for 20-15, but Cardiff then foundered in a scrappy close. To hear the news that Llanelli had won must have been met with mixed emotions in the dressing room.
Northampton: Beal; Moir, Jorgensen (Webster 75), Leslie, Cohen; Grayson, Brooks; Smith, Thompson (Brotherstone 75), Stewart, Phillips, Hunter, Rennick (Soden h-t), Pountney (capt), Blowers.
Cardiff: R Williams; Sullivan, Robinson, Muller (Allen 77), Morgan; Harris, Howley; John (Rogers 66), Humphreys (A Lewis 66), Young (capt), C Quinnell, Tait, Appleyard (Sititi 56), M Williams, E Lewis.
Referee: I Ramage (Scotland).