Hopkinson was elected as a Federalist to the Fourteenth Congress, in 1816.
On February 22-27, 1819, he argued before the United States Supreme Court in the McCulloch v. Maryland case as part of the defense counsel.