I Could Have Been a Sailor is a 1979 album by singer-songwriter Peter Allen, released on A&M Records. It is notable as containing Allen’s versions of his songs “Don’t Cry Out Loud” and “I’d Rather Leave While I’m in Love”, which were major successes, as covered by others.

I Could Have Been a Sailor was Peter Allen’s fifth studio album, and his third for A&M Records. It followed the double-album live release, It Is Time for Peter Allen (1977), on the same label. The album is notable for its association with producer Marvin Hamlisch. Allen also performs his versions of two songs he co-wrote with Carol Bayer-Sager, “Don’t Cry Out Loud” and “I’d Rather Leave While I’m in Love”.

“Don’t Cry Out Loud” had been popularized by Melissa Manchester prior to Allen’s release. Manchester’s recording of the song was released in late 1978 and spent 20 weeks on the Billboard Hot 100 chart. It was also the title song of Manchester’s related album. The song had been co-written by Allen and Carol Bayer-Sager; Bayer-Sager was also a co-writer with Manchester. “I’d Rather Leave While I’m in Love” was popularized by Rita Coolidge in 1979, as well as being recorded by Dusty Springfield, among others.

The album was Allen’s first to make the US albums chart, peaking at No. 171 on the Billboard 200. The album has been subject to limited reissue on CD. It was reissued on CD in 2001 in Japan, on Universal/A&M. It has not been reissued on CD in North America or elsewhere.