Kirkpatrick Macmillan (2 September 1812 in Keir, Dumfries and Galloway – 26 January 1878 in Keir) was a Scottish blacksmith. He is generally credited with inventing the treadle bicycle.