In February 1919, the young officer went to Charleston, West Virginia, for two years as inspector of ordnance at the Navy's Armor and Projectile Plant before returning to sea as executive officer of the transport Hancock (AP-3).
At the end of the 1930-31 academic year, Ainsworth returned to sea in Idaho (BB-42) to serve as that battleship's navigator.