St Johnstone secured their place in the Scottish Cup semi-final draw with a deserved win over Raith Rovers.

Gary McDonald's swivel and strike from the edge of the penalty area gave top-flight Saints an early lead.

But the Championship side levelled when Joe Cardle's stunning long-range effort whistled into the net via a post.

A determined run and shot by Nigel Hasselbaink turned the match back in Saints' favour and Steven Anderson fired the visitors' third.

The Perth side's pursuit of the trophy will continue in one of next month's semi-finals at Ibrox Stadium, with the draw for the last four taking place on Sunday.

Keen to make a positive start and dilute the chances of joining Hibernian as one of Raith's Scottish Cup scalps, St Johnstone duly delivered the opening goal.

Anderson nodded Gary Miller's free-kick down for McDonald and the midfielder's shot on the turn found its way past Lee Robinson at his near post.

Joe Cardle scores for Raith Rovers against St Johnstone

Joe Cardle ended on the losing side despite scoring the pick of the goals

The early set-back demanded a response from Raith and Cardle provided one in style. The winger moved from a central position into the inside-right channel and rifled the ball across the bows of Alan Mannus from 35 yards.

Saints' Brian Easton sought to emulate Cardle's effort with a low shot from similar range but it bounced wide.

At the other end, Dougie Hill headed narrowly past and Ross Callachan headed well off target with an even better chance.

Like the first half, Tommy Wright's men made the better start in the second period and soon found themselves in front again.

Hasselbaink forced his way past Jason Thomson and Liam Fox before poking the ball past the on-rushing Robinson.

The visitors were eager to put the tie to bed and James Dunne and Stevie May fired wide and the latter also drew a save from Robinson.

Mannus, too, had his work cut out in the second half. Rovers won a free-kick about 20 yards from goal and Fox's curling shot seemed destined for the net until the Saints keeper stretched out his right hand.

But the match was ended as a contest when Anderson's boot connected with Lee Croft's near-post corner to carry the ball past Robinson.

St Johnstone manager Tommy Wright:

"I'm delighted for the players, the supporters, the board as well and the chairman. It's a big thing to get to a semi-final.

"We probably need to go and vanish the ghosts of the last semi-final we were in [the 3-0 defeat by Motherwell in 2011]. We were disappointing that day.

"I think they deserve the right to have another semi-final and another crack of getting into the final.

"Second half, we were excellent. It's a tremendous goal from Nigel to get us back in front. I thought we dominated most of the second half.

"They did put us under pressure in the first half. It was important that we came in level at half-time. It was important that we dominated and started well in the second half."

Raith Rovers manager Grant Murray:

"We got ourselves back in the game [after losing the opening goal]. We got back in the game with a great strike from Joe Cardle.

"I think we had them rattled for a wee bit, we were on top and we did have a couple of chances. In cup ties you've got to take your chances when they come along.

"St Johnstone turned it round in the second half. We found ourselves behind against a very good side who punished us when they could."

Lineup, Bookings (3) & Substitutions (5)

Raith Rovers

  • 20 Robinson
  • 02 Thomson
  • 03 Booth
  • 06 Fox
  • 04 Watson
  • 05 Hill
  • 11 Anderson
  • 08 Moon
  • 15 Smith (Spence - 83' )
  • 12 Callachan (Vaughan - 75' )
  • 07 Cardle

Substitutes

  • 09 Spence
  • 14 Donaldson
  • 16 Ellis
  • 17 Laidlaw
  • 19 Mullen
  • 21 Vaughan
  • 23 Matthews

St Johnstone

  • 01 Mannus
  • 19 Miller
  • 24 Easton Booked
  • 12 Dunne
  • 02 Mackay
  • 06 Anderson
  • 22 Croft Booked (Millar - 86' )
  • 08 McDonald Booked
  • 17 May (O'Halloran - 82' )
  • 09 MacLean
  • 11 Hasselbaink (Wotherspoon - 76' )

Substitutes

  • 04 Cregg
  • 07 Millar
  • 10 Wotherspoon
  • 15 Banks
  • 23 Clancy
  • 25 Iwelumo
  • 29 O'Halloran
Ref: Craig Thomson
Att: 3,767

Match Stats

Shots

11 14

On target

3 4

Corners

1 8

Fouls

12 10

Live Text Commentary

Full time

Full Time Match ends, Raith Rovers 1, St Johnstone 3.

90:00 +2:20 Full time

Full Time Second Half ends, Raith Rovers 1, St Johnstone 3.

90:00 +1:56

Hand ball by David Wotherspoon (St Johnstone).

88:46

Attempt missed. Michael O'Halloran (St Johnstone) left footed shot from outside the box misses to the left.

87:15

Attempt blocked. Joe Cardle (Raith Rovers) right footed shot from outside the box is blocked.

86:55

Foul by Steven Anderson (St Johnstone).

86:55

Greig Spence (Raith Rovers) wins a free kick in the attacking half.

86:04

Hand ball by Gary McDonald (St Johnstone).

85:25 Substitution

Substitution Substitution, St Johnstone. Chris Millar replaces Lee Croft.

85:03

Lee Croft (St Johnstone) wins a free kick in the defensive half.

85:03

Foul by Dougie Hill (Raith Rovers).

84:14

Michael O'Halloran (St Johnstone) wins a free kick on the right wing.

84:14

Foul by Kevin Moon (Raith Rovers).

82:21 Substitution

Substitution Substitution, Raith Rovers. Greig Spence replaces Gordon Smith.

81:48 Substitution

Substitution Substitution, St Johnstone. Michael O'Halloran replaces Steve May.

80:05

Steve May (St Johnstone) wins a free kick in the defensive half.

80:05

Foul by Liam Fox (Raith Rovers).

78:17 Goal scored

Goal! Goal! Raith Rovers 1, St Johnstone 3. Steven Anderson (St Johnstone) right footed shot from the centre of the box to the bottom left corner. Assisted by Lee Croft with a cross.

77:52

Corner, St Johnstone. Conceded by Grant Anderson.

77:23

Steve May (St Johnstone) wins a free kick on the left wing.

77:23

Foul by Liam Fox (Raith Rovers).

76:44

Attempt missed. James Dunne (St Johnstone) right footed shot from outside the box is close, but misses to the left.

75:54 Substitution

Substitution Substitution, St Johnstone. David Wotherspoon replaces Nigel Hasselbaink.

74:39 Substitution

Substitution Substitution, Raith Rovers. Lewis Vaughan replaces Ross Callachan.

74:08

Attempt missed. Steve May (St Johnstone) right footed shot from outside the box is close, but misses to the left following a set piece situation.

73:36

Hand ball by Liam Fox (Raith Rovers).

72:20

Lee Croft (St Johnstone) wins a free kick in the defensive half.

72:20

Foul by Callum Booth (Raith Rovers).

71:47

Hand ball by Liam Fox (Raith Rovers).

71:23

Attempt saved. Ross Callachan (Raith Rovers) right footed shot from outside the box is saved in the centre of the goal.

69:34

Corner, St Johnstone. Conceded by Callum Booth.

66:30

Attempt missed. Steven Anderson (St Johnstone) header from the centre of the box is close, but misses to the left.

66:09

Corner, St Johnstone. Conceded by Paul Watson.

64:47

Attempt saved. Liam Fox (Raith Rovers) right footed shot from outside the box is saved in the bottom right corner.

63:58 Booking

Booking Lee Croft (St Johnstone) is shown the yellow card.

63:48

Foul by Lee Croft (St Johnstone).

63:48

Liam Fox (Raith Rovers) wins a free kick in the defensive half.

61:54

Attempt missed. Joe Cardle (Raith Rovers) right footed shot from outside the box is too high.

60:59

Attempt missed. Steve May (St Johnstone) right footed shot from outside the box is too high.

56:04

Corner, St Johnstone. Conceded by Paul Watson.

55:20

Attempt saved. Steve May (St Johnstone) right footed shot from outside the box is saved in the bottom left corner.

54:01

Corner, St Johnstone. Conceded by Paul Watson.

53:52

Attempt blocked. Steve May (St Johnstone) right footed shot from outside the box is blocked.

53:08

Attempt missed. Grant Anderson (Raith Rovers) right footed shot from outside the box misses to the right.

52:25

Attempt missed. James Dunne (St Johnstone) right footed shot from the centre of the box is close, but misses to the left.

51:52

Corner, St Johnstone. Conceded by Jason Thomson.

48:50 Goal scored

Goal! Goal! Raith Rovers 1, St Johnstone 2. Nigel Hasselbaink (St Johnstone) right footed shot from the centre of the box to the centre of the goal. Assisted by Brian Easton.

45:00

Second Half begins Raith Rovers 1, St Johnstone 1.

45:00 +0:05 Half time

Half Time First Half ends, Raith Rovers 1, St Johnstone 1.

40:06

Attempt missed. Liam Fox (Raith Rovers) right footed shot from outside the box misses to the right.

38:33

Attempt missed. Ross Callachan (Raith Rovers) header from the centre of the box is close, but misses to the right.

37:59 Booking

Booking Brian Easton (St Johnstone) is shown the yellow card.

37:49

Foul by Brian Easton (St Johnstone).

37:49

Grant Anderson (Raith Rovers) wins a free kick on the right wing.

35:24

Attempt missed. Dougie Hill (Raith Rovers) header from very close range is close, but misses to the right.

35:02

Corner, Raith Rovers. Conceded by Steven Anderson.

31:25

Attempt missed. Brian Easton (St Johnstone) left footed shot from outside the box is close, but misses to the right.

31:02

Corner, St Johnstone. Conceded by Callum Booth.

28:14

Hand ball by Kevin Moon (Raith Rovers).

26:29

Hand ball by Steve May (St Johnstone).

23:03

Attempt missed. David Mackay (St Johnstone) right footed shot from outside the box is just a bit too high following a set piece situation.

22:27

Foul by Paul Watson (Raith Rovers).

22:27

Nigel Hasselbaink (St Johnstone) wins a free kick in the defensive half.

20:47 Goal scored

Goal! Goal! Raith Rovers 1, St Johnstone 1. Joe Cardle (Raith Rovers) right footed shot from outside the box to the top left corner. Assisted by Dougie Hill.

19:29

Foul by Steve May (St Johnstone).

19:29

Paul Watson (Raith Rovers) wins a free kick on the left wing.

18:30

Corner, St Johnstone. Conceded by Kevin Moon.

16:42

Nigel Hasselbaink (St Johnstone) wins a free kick on the left wing.

16:42

Foul by Kevin Moon (Raith Rovers).

16:10

Foul by David Mackay (St Johnstone).

16:10

Gordon Smith (Raith Rovers) wins a free kick on the left wing.

13:24

Attempt missed. Grant Anderson (Raith Rovers) right footed shot from the right side of the box is too high.

12:00

Lee Croft (St Johnstone) wins a free kick in the attacking half.

11:58

Foul by Liam Fox (Raith Rovers).

10:23 Booking

Booking Gary McDonald (St Johnstone) is shown the yellow card.

10:13

Foul by Gary McDonald (St Johnstone).

10:13

Jason Thomson (Raith Rovers) wins a free kick on the right wing.

9:01

Foul by Gary Miller (St Johnstone).

9:01

Joe Cardle (Raith Rovers) wins a free kick in the attacking half.

8:04

Attempt missed. Steve May (St Johnstone) right footed shot from outside the box is too high.

3:19 Goal scored

Goal! Goal! Raith Rovers 0, St Johnstone 1. Gary McDonald (St Johnstone) right footed shot from the centre of the box to the bottom left corner. Assisted by Steven Anderson.

2:30

Steve May (St Johnstone) wins a free kick in the defensive half.

2:30

Foul by Paul Watson (Raith Rovers).

0:16

Attempt missed. Ross Callachan (Raith Rovers) right footed shot from more than 35 yards is close, but misses to the right.

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers