His first-class career began quietly. Facing Northamptonshire on debut, he managed only one run in his opening innings. He looked more settled second time around, but the South African spinner Nicky Boje ended his stay. Dent bounced back in the games that followed, producing several innings that shaped results. In 2010 he totalled 725 runs for the county, and the following season he was moved up to open, a year in which he also registered his first first-class hundred, against Surrey. He has gone past 1000 first-class runs in a season twice. His best score is 268, made against Glamorgan in the last fixture of the 2015 campaign.
The summer of 2019 brought a productive run. In June he hit 169 against Derbyshire, an innings featuring 19 boundaries and one six, as Gloucestershire chased 263 in the fourth innings to win by 8 wickets; his opening stand of 133 with Bracey laid the platform. Leicestershire suffered twice, with Dent making 176 against them in June and 125 in July, one of those games ending in victory and the other in a draw. He also reached three figures against Glamorgan, although twin half-centuries from Marnus Labuschagne helped the Welsh county beat Gloucestershire by 4 wickets.
In List A cricket Dent has three hundreds, the highest being 151, though the red-ball game is where he is most at home. Under his most recent agreement, he is set to remain Gloucestershire captain until the end of the 2020 season.