The War of 1812 actually lasted for thirty-two months (2 full years and approximately 8 months). The United States declared war on Britain on June 19,1812. The Treaty of Ghent, signed on December 25, 1814, effectively ended the War of 1812. However, it was not until February 1815, after the Battle of New Orleans, that major fighting between armed forces stopped. The Battle of New Orleans was seen as the final battle.

More Info: en.wikipedia.org