The great-circle distance between Rio de Janeiro, Brazil and Melbourne, Australia is approximately 12,500 km (7,768 miles).
The route crosses the South Pacific, passing south of New Zealand, over the Tasman Sea. It's one of the longest intercontinental city-pair distances in the world—comparable to London–Sydney or New York–Singapore.
For cargo shipping: ~30–40 days via Cape Horn or Cape of Good Hope (no Panama Canal for this route).