On January 13, 1825, Carpender was promoted to the rank of lieutenant.[1] In 1827 he was attached to the United States Navy Mediterranean Squadron.[3] From 1829 to 1830 he served as an officer aboard the sloop-of-war USS Falmouth of the West India Squadron.[3] From 1833 to 1834 he was attached to the Naval Rendezvous at Boston.[3] In 1840 he served with the Pacific Squadron on the frigate USS Constitution.[3] In 1841 he was promoted to Commander and in 1845 he was placed in charge of Norfolk Navy Yard as an inspector.[3]
In 1846, Carpender participated in the blockade of Tuxpan as commander of the brig USS Truxtun, during which the ship struck a sandbar, resulting in the surrender of the officers and men to the Mexicans and the destruction of the ship.[4] In October 1848, while in command of the steamship USS Iris, in rescuing a French ship, the barque L'Eugènie which had struck a bank and become stranded off the anchorage of Antón Lizardo, his initial detention of the ship and crew developed into a diplomatic incident that ultimately involved United States Secretary of State John M. Clayton and French Minister of Foreign Affairs Alexis de Tocqueville.[5]
Previously retired under the Act of 1855,[2] Carpender returned to duty by 1861, commanding the US Storeship Falmouth, formerly the sloop-of-war USS Falmouth on which he had served from 1829 to 1830.[6] On July 16, 1862, he was promoted to the rank of commodore. He served as prize commissioner at Key West, Florida from 1864 to 1865.[3][2]