A method for producing a copper alloy that undergoes martensitic transformation when heat-treated or worked, wherein, among a casting step of melting and casting a raw material containing Cu, Sn, and Al and having an alloy composition represented by Cu100−(x+y)SnxAly, where 8≤x≤12 and 8≤y≤9 are satisfied, so as to obtain a cast material, and a homogenization step of homogenizing the cast material in a temperature range of a βCuSn phase so as to obtain a homogenized material, the method comprises at least the casting step, wherein a main phase is a βCuSn phase with Al dissolved therein wherein an elastic recovery (%) determined from an angle θ observed when a flat plate of the copper alloy is unloaded after being bent at a bending angle of 45° is 40% or more.