On July 20, 1821,William Cox Ellis (F) fromPennsylvania's 10th district resigned. A special election was held to fill the resulting vacancy on October 9, 1821.
| Candidate | Party | Votes[1] | Percent |
|---|---|---|---|
| Thomas Murray, Jr. | Democratic-Republican | 6,038 | 50.3% |
| William Cox Ellis | Federalist | 5,961 | 49.7% |
Murray took his seat on December 12, 1821.[2]