John Machar (1796 – February 7, 1863) was the second principal of Queen's University, then known as Queen's College at Kingston.
Machar was born in Tannandice, Scotland. He was ordained as a Presbyterian minister in 1819. In 1827, he emigrated to Kingston, Upper Canada in order to become the minister at St Andrew's Church.
Machar was one of the original trustees of the University, and became its principal in 1846, when Thomas Liddell resigned unexpectedly. He resigned in 1853, after a term marred by financial issues.
He was the father of author Agnes Maule Machar.