Tim Cahill has pulled out of the Socceroos' friendly against Brazil on Saturday after suffering an ankle injury in Major League Soccer (MLS).

The 33-year-old Australian attacker injured his right ankle while playing for New York Red Bulls over the weekend and confirmed on Twitter on Monday that he would not join the national side in Brasilia for their friendly international set for 7 September.

Cahill had initially cast doubt on his chances of travelling after Saturday's match between the Red Bulls and DC United, having been substituted just before the hour mark after picked up a knock to his right ankle.

The former Everton player, who has scored 28 goals in 63 matches for Australia, made the decision to pull out of the Socceroos' squad after the ankle did not respond quickly enough to treatment.

"Unfortunately I won't be fit to join @Socceroos in Brazil this week due to injury," Cahill tweeted.

"But glad we got the 3points for @NewYorkRedBulls #ourteam."

The former Everton player, who has scored 28 goals in 63 matches for Australia, made the decision to pull out of the Socceroos' squad after the ankle did not respond quickly enough to treatment.