Federer, who won 20 Grand Slam singles titles, said injuries and surgeries had taken their toll. His final competitive matches will be next week in London.
In an unprecedented move, the ATP will strip the Grand Slam tournament of ranking points, effectively making it an exhibition event. Most top players are still expected to participate.