The flame will arrive in Bitton on 22 May, before heading to Longwell Green, Hanham and on to Bristol, where it will travel by water on a vintage boat.
A celebratory event will take place in Bristol, where it will stay overnight.
On 23 May the torch will travel through Flax Bourton, Backwell Farleigh, Backwell West Town, Nailsea, Failand, Leigh Woods and back to Bristol.
The procession will also visit Bath's Royal Crescent on 22 May.
Councillor Simon Cook, from Bristol City Council, said: "Everyone is very excited about the Olympic torch being carried through the streets of Bristol.
"I'm sure residents in Bristol will want to welcome the torch relay, cheer the torchbearers and celebrate the coming of the 2012 Olympics."
Leader of South Gloucestershire Council John Calway said: "We are delighted that South Gloucestershire has been chosen as a destination for the Olympic flame to travel through.
"We feel it shows our residents, visitors and the wider community that South Gloucestershire is a great place to live and work and we hope that many people will join us in lining the streets to welcome the torchbearer and embrace the legacy of the 2012 Olympics."
The route the Olympic torch will take through locations in Bristol and South Gloucestershire has been announced.