The EAR 31 class was a class of oil-burning 1,000 mm (3 ft 3+3⁄8 in) gauge 2-8-4 steam locomotives. The 46 members of the class were built in 1955 by Vulcan Foundry, in Newton-le-Willows, Lancashire (now part of Merseyside), England, for the East African Railways (EAR). They were a lighter, branch-line version of the EAR 30 class, and worked from various sheds throughout the EAR system.