James Gray Elections contested
Parliament Member page for James Gray
Elections listed as contested and won are those forming part of any general election or by-election contested since since the 2010 general election. A person may have contested an election outside of this grouping.
| Election | Constituency | Election type | Party | Vote count | Vote share | Position |
| 4 July 2024 | South Cotswolds | General election | Con | 17,988 | 34.4% | 2nd |
| 12 December 2019 | North Wiltshire | General election | Con | 32,373 | 59.1% | 1st |
| 8 June 2017 | North Wiltshire | General election | Con | 32,398 | 60.3% | 1st |
| 7 May 2015 | North Wiltshire | General election | Con | 28,938 | 57.2% | 1st |
| 6 May 2010 | North Wiltshire | General election | Con | 25,114 | 51.6% | 1st |