There will be two grounds in the host city of Rio de Janeiro with matches held at the Olympic stadium and the Maracana, site of the 2014 World Cup final.
The other games are to take place at the Mineirao stadium in Belo Horizonte, the Mane Garrincha stadium in Brasilia, the Amazonia arena in Manaus, the Fonte Nova arena in Salvador and the Corinthians arena in Sao Paulo.
"The Olympic football tournaments will be a fantastic opportunity to revive the great atmosphere seen during the 2014 FIFA World Cup, not only in Rio de Janeiro but also in the other five cities," said Marco Polo Del Nero, chairman of the organising committee for the Games soccer.
"They did an excellent job in 2014 and now they can use the World Cup stadiums and infrastructure already in place to unite the country for a major event once more," he added in a news release.
Sixteen men's sides and 12 women's teams will play 58 matches between August 3-20.
Olympic gold is the only major title that Brazil have not won and the host nation are determined to end that run.
All the teams will be largely made up of youngsters but three players over 23 are permitted in each squad.
Barcelona forward Neymar has already confirmed that he plans to be one of Brazil's three over-age players.