Presidential elections were held in El Salvador on 1 February 1842. Antonio José Cañas ran as an independent candidate and was elected by the legislature, but he never assumed office.