This iron-based sintered alloy contains 0.05 to 3% by mass of calcium carbonate or 0.05 to 3% by mass of strontium carbonate. As a result, an iron-based sintered alloy having excellent machinability is obtained.