On February 1, 1820, James Johnson (DR) of Virginia's 20th district resigned from his position as Representative.
[1] A special election was held to fill the resulting vacancy.
Gray took his seat on November 13, 1820.
[3]