Born in Milan, Cadorna entered the Piedmontese military academy at Turin in 1832. Joining the engineer corps in 1840, he commanded a volunteer engineer battalion in Lombardy from March 1848 until August 1849 during the Italian War of Independence.