Abstract It is important to control magnetic anisotropy of ferromagnetic materials. In this work, FeCo thin films are deposited on the curving substrates by electrochemical deposition to adjust the stress-induced magnetic anisotropy. The compressive stress is produced in the as-deposited films after the substrates are flattened. A simplified theoretical model of ferromagnetic resonance is utilized to measure the intrinsic magnetic anisotropy field and saturation magnetization. The results show that the stress-induced magnetic anisotropy and the resonance frequency increase with the increase of substrate curvature. The induced easy axis is perpendicular to the compressive stress direction.