Lochinvar (or Lan Var) is a loch in the civil parish of Dalry in the historic county of Kirkcudbrightshire, Dumfries and Galloway Scotland. It is located in the Galloway Hills, around north-east of St. John's Town of Dalry. The loch formerly had an island on which stood Lochinvar Castle, seat of the Gordon family. In the 20th century the loch was dammed to form a reservoir, raising the water level and submerging the island with the ruins of the castle. The loch is used for trout fishing.