Despite its name the War of 1812 lasted three years, from 1812 to 1815. While the US saw its capital burned and the invasion of Canada failed, America didn't technically lose the war and the peace was negotiated on favorable terms. At the same time the US didn't decisively win either.
So how could America have decisively won the War of 1812?