Sir James Langham, 2nd Baronet (c. 1621 – 22 August 1699) was an English politician who sat in the House of Commons at various times between 1656 and 1662.
Langham was the eldest son of Sir John Langham, 1st Baronet and his wife Mary Bunce. He was educated at Emmanuel College, Cambridge, where he matriculated in 1638, and was admitted to Lincoln's Inn in 1640 to train for the law. He was knighted in 1660 and appointed Sheriff of Northamptonshire for 1664.
In 1656, Langham was elected Member of Parliament for Northamptonshire in the Second Protectorate Parliament. He was elected MP for Northampton in 1659 for the Third Protectorate Parliament. In 1661, Langham was elected Member of Parliament for Northampton in the Cavalier Parliament but the election was declared void on 13 June. Langham was again elected MP for Northampton in February 1662 but the election was also declared void on 26 April 1662.
Langham inherited the baronetcy on the death of his father in 1671. He was elected a Fellow of the Royal Society in 1678.
Langham married four times, his first wife being Mary Alston, the daughter of Sir Edward Alston, his second wife Elizabeth, the daughter of Ferdinando Hastings, 6th Earl of Huntingdon, his third wife Penelope, the daughter of John Holles, 2nd Earl of Clare and his fourth wife Dorothy, the daughter of John Pomeroy of Devon.