Abstract The effect of iron and cobalt addition on the magnetic and shape memory properties of Ni 2MnGa sputtered films was investigated. It was found that heat-treated films with more than 5.1 mol% Co have two phases. Martensitic transformation temperatures of the constraint-aged films decreased with the iron addition and increased with increasing cobalt content. The Curie temperature of the heat-treated films increased with increasing amount of iron or cobalt. The constraint-aged films containing iron and cobalt exhibited a two-way shape memory effect by heating and cooling.