Frank Lampard's goal against Brentford was his 26th in the FA Cup as he became Chelsea's leading scorer in the competition, surpassing Bobby Tambling. Lampard now has 199 goals in total for the Blues.
Chelsea dominated the first half but despite several chances they failed to break the deadlock.
Oscar was their most lively threat with the Brazilian scuffing against the post while earlier seeing his goal-bound shot deflected over the bar by Harlee Dean.
Branislav Ivanovic also went close for the Blues, heading Mata's free-kick back across goal and wide while Lampard was unusually inaccurate in front of goal after volleying erratically wide from 10 yards.
Adam Forshaw was Brentford's best attacking threat with the midfielder sending two efforts from distance wide of Petr Cech's goal.
Forshaw was threatening again when David Luiz sent him crashing to the turf on the edge of the penalty area, winning a free-kick that infuriated Brentford as Marcello Trotta had rifled his shot past Cech just as the whistle blew for a foul.
Chelsea started the second half with more urgency and Ivanovic forced an excellent low save from Simon Moore with his close-range header from Oscar's cross.
The holders were eventually ahead and it came from their top scorer this season with Mata finding the net with a low strike from 20 yards after Ba's knockdown from Cech's long punt.
Brentford pressed for an equaliser but struggled to break down a well-organised Chelsea defence and it was the hosts who scored next doubling their lead through Oscar's flick from Ivanovic's cross that was deflected past Moore.
Clayton Donaldson headed over for the Bees moments later but the tie was all but sealed as Lampard scored Chelsea's third.
In doing so Lampard became Chelsea's all-time goalscorer in the FA Cup with his 26th in the competition, also taking his tally to 199 goals for the Blues as he side-footed Mata's cross past Moore from 10 yards out.
Terry completed the rout with a late header following a fine, incisive cross from Oscar.
In the closing moments, Luiz was lucky to escape punishment after a cynical shoulder barge on Jake Reeves as the game, that had been played in right spirit, ended on a sour note.
90:00+4:13 The referee blows his whistle to end the game.
90:00+3:30 Eden Hazard decides to take the corner short.
90:00+2:44 Harry Forrester takes the inswinging corner, Demba Ba manages to make a clearance.
90:00+2:27 A cross is delivered by Harry Forrester, clearance by David Luiz.
90:00+1:11 Foul by Clayton Donaldson on John Terry, free kick awarded. Petr Cech restarts play with the free kick.
89:55 Yossi Benayoun challenges Tom Adeyemi unfairly and gives away a free kick. Direct free kick taken by Sam Saunders.
86:44 Free kick awarded for a foul by Jonathan Douglas on Branislav Ivanovic. Direct free kick taken by Petr Cech.
84:32 Harlee Dean takes the direct free kick.
84:32 Booking David Luiz receives a yellow card.
84:26 Free kick awarded for a foul by David Luiz on Jake Reeves.
80:46 The assist for the goal came from Emboaba Oscar.
80:46 GOAL - John Terry:Chelsea 4 - 0 Brentford John Terry finds the back of the net with a headed goal from inside the six-yard box. Chelsea 4-0 Brentford.
80:41 Emboaba Oscar sends in a cross,
80:22 Emboaba Oscar takes a short corner.
79:57 Substitution Ryan Bertrand on for Frank Lampard.
77:31 Substitution Sam Saunders joins the action as a substitute, replacing Adam Forshaw.
75:27 Substitution Juan Mata goes off and Yossi Benayoun comes on.
74:36 The ball is crossed by Jake Bidwell, comfortable save by Petr Cech.
72:18 Substitution Jake Reeves joins the action as a substitute, replacing Toumani Diagouraga.
70:53 Assist by Juan Mata.
70:53 GOAL - Frank Lampard:Chelsea 3 - 0 Brentford Frank Lampard fires in a goal from inside the six-yard box low into the middle of the goal. Chelsea 3-0 Brentford.
69:46 Corner taken by Harry Forrester, Clayton Donaldson has a header from deep inside the six-yard box and clears the crossbar.
68:54 Jake Bidwell crosses the ball in from the free kick, clearance made by Gary Cahill.
68:54 Booking Branislav Ivanovic shown a yellow card.
68:49 Free kick awarded for an unfair challenge on Harry Forrester by Branislav Ivanovic.
67:38 Branislav Ivanovic provided the assist for the goal.
67:38 GOAL - Emboaba Oscar:Chelsea 2 - 0 Brentford Emboaba Oscar finds the back of the net with a goal from close in low into the middle of the goal. Chelsea 2-0 Brentford.
67:26 Branislav Ivanovic produces a cross,
64:20 Free kick taken by John Terry.
64:20 Substitution Victor Moses goes off and Eden Hazard comes on.
64:20 Free kick awarded for an unfair challenge on Juan Mata by Shaleum Logan.
63:46 Frank Lampard gives away a free kick for an unfair challenge on Tom Adeyemi. The free kick is swung in right-footed by Adam
Forshaw, clearance made by Gary Cahill.
62:39 The assistant referee signals for offside against Clayton Donaldson. Indirect free kick taken by Petr Cech.
61:42 The official flags Demba Ba offside. Free kick taken by Harlee Dean.
60:35 Corner taken left-footed by Juan Mata from the left by-line, Gary Cahill takes a shot. Blocked by Tony Craig.
60:26 The ball is delivered by Juan Mata, Jonathan Douglas gets a block in.
58:40 David Luiz concedes a free kick for a foul on Harry Forrester. Harry Forrester takes the free kick.
57:50 Outswinging corner taken by Adam Forshaw.
56:46 Free kick awarded for an unfair challenge on Harry Forrester by David Luiz. Jake Bidwell delivers the ball from the free kick
left-footed from left wing, Frank Lampard manages to make a clearance.
55:46 Clayton Donaldson crosses the ball.
55:02 Substitution Harry Forrester is brought on as a substitute for Marcello Trotta.
53:55 GOAL - Juan Mata:Chelsea 1 - 0 Brentford A goal is scored by Juan Mata from outside the area to the bottom right corner of the goal. Chelsea 1-0 Brentford.
52:52 Foul by Toumani Diagouraga on Victor Moses, free kick awarded. David Luiz takes the direct free kick.
52:33 Gary Cahill takes a shot. Jonathan Douglas gets a block in.
52:21 Juan Mata crosses the ball, Harlee Dean makes a clearance.
52:04 Outswinging corner taken right-footed by Emboaba Oscar from the right by-line, clearance by Jonathan Douglas.
51:57 Victor Moses delivers the ball, blocked by Toumani Diagouraga.
50:17 Ashley Cole fouled by Adam Forshaw, the ref awards a free kick. Juan Mata crosses the ball in from the free kick, Toumani
Diagouraga manages to make a clearance.
Correction - 48:04 The ball is crossed by Emboaba Oscar, Branislav Ivanovic takes a shot. Save made by Simon Moore.
48:04 The ball is crossed by Emboaba Oscar, Demba Ba takes a shot. Simon Moore makes a save.
47:40 Juan Mata delivers a pass corner to short, Simon Moore makes a save.
45:01 The referee starts the second half.
45:00+1:19 The match has reached half-time.
45:00+0:12 Unfair challenge on Branislav Ivanovic by Clayton Donaldson results in a free kick. Petr Cech takes the free kick.
44:51 Corner from the left by-line taken by Adam Forshaw, clearance made by Demba Ba.
44:32 The ball is swung over by Clayton Donaldson, Tom Adeyemi takes a shot. Blocked by John Terry.
43:25 The ball is delivered by Branislav Ivanovic, Frank Lampard produces a right-footed shot from close range which goes wide of
the left-hand upright.
43:04 Marcello Trotta is ruled offside. Petr Cech takes the indirect free kick.
42:48 The ball is crossed by Jake Bidwell.
40:52 Free kick awarded for an unfair challenge on Toumani Diagouraga by Emboaba Oscar. Direct free kick taken by Simon Moore.
38:34 David Luiz concedes a free kick for a foul on Adam Forshaw. Shot on goal comes in from Adam Forshaw from the free kick. Adam
Forshaw takes a shot. David Luiz gets a block in.
37:11 Free kick awarded for an unfair challenge on Ashley Cole by Shaleum Logan. Frank Lampard produces a shot on goal direct from
the free kick, Clayton Donaldson makes a clearance.
36:18 Unfair challenge on David Luiz by Jonathan Douglas results in a free kick. Gary Cahill takes the direct free kick.
35:23 The offside flag is raised against Emboaba Oscar. Indirect free kick taken by Simon Moore.
35:08 Foul by Harlee Dean on Demba Ba, free kick awarded. David Luiz takes the direct free kick.
32:53 Effort from outside the box by Adam Forshaw goes wide right of the target.
32:19 David Luiz sends in a cross, save by Simon Moore.
28:43 Foul by Harlee Dean on Demba Ba, free kick awarded. Juan Mata crosses the ball in from the free kick, Marcello Trotta makes
25:36 Shot by Emboaba Oscar from inside the box bounces off the post.
22:57 The ball is sent over by Juan Mata. The ball is crossed by Ashley Cole.
21:34 Frank Lampard has an effort at goal from outside the box which goes wide right of the goal.
20:47 Centre by David Luiz, Tony Craig manages to make a clearance.
20:30 Ashley Cole sends in a cross, Emboaba Oscar takes a shot. Blocked by Jonathan Douglas.
19:16 Centre by Jake Bidwell. Adam Forshaw takes a shot.
17:43 The ball is crossed by Victor Moses, Shot from 6 yards by Frank Lampard. Emboaba Oscar takes a shot. Harlee Dean gets a block
in. Inswinging corner taken by Emboaba Oscar, clearance made by Jonathan Douglas. Shot from just outside the box by David
Luiz goes over the bar.
15:09 Emboaba Oscar sends in a cross, Headed effort from inside the area by Demba Ba misses to the left of the goal.
14:47 Inswinging corner taken from the right by-line by Juan Mata.
14:39 The ball is sent over by Branislav Ivanovic, blocked by Clayton Donaldson.
14:04 Free kick awarded for an unfair challenge on Gary Cahill by Jonathan Douglas. David Luiz takes the free kick.
13:51 Branislav Ivanovic produces a cross, clearance made by Tony Craig.
11:15 The ball is sent over by Shaleum Logan, Clayton Donaldson has a headed effort at goal from deep inside the area missing to
the left of the target.
9:40 Victor Moses fouled by Jake Bidwell, the ref awards a free kick. The ball is swung over by Juan Mata, Close range headed effort
by Branislav Ivanovic misses to the right of the goal.
7:57 Adam Forshaw has an effort at goal from outside the penalty box missing to the wide left of the goal.
5:08 The offside flag is raised against Tom Adeyemi. Ashley Cole takes the indirect free kick.
4:06 Demba Ba takes a shot. Blocked by Tony Craig.
2:56 The ball is sent over by Emboaba Oscar, save by Simon Moore.
2:39 Free kick awarded for a foul by Jake Bidwell on Victor Moses. Branislav Ivanovic takes the direct free kick.
0:00 The game gets underway.
Live text and data provided by The Press Association.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.