Ubud
Ubud
Magelang
Magelang
Train Bus

Ubud to Magelang

Updated: 28 May 2026

The journey from Ubud to Magelang covers approximately 800 kilometers. You will travel from Ubud to Gilimanuk, cross to Ketapang, and then take a train to Yogyakarta or Semarang before continuing by bus to Magelang. Magelang is the gateway to the famous Borobudur Temple. The route offers a mix of coastal and mountainous scenery. Expect a total travel time of around 19 hours.

Total Distance: 800 km driving distance, 720 km straight-line air distance.
Fastest Way
Train to Yogyakarta followed by a bus is the fastest and most comfortable route.
Cheapest Way
Bus travel is the most cost-effective way to reach Magelang.
Compare Ubud to Magelang Routes
Train
Connecting
Bus
Direct
Duration 17 hours 20 hours
Avg Price 400,000 - 700,000 IDR 450,000 - 750,000 IDR
Operator Kereta Api Indonesia (KA Logawa) PO Gunung Harta
Route Banyuwangi - Yogyakarta - Magelang Denpasar - Gilimanuk - Ketapang - Solo - Magelang
Tip Take the train to Yogyakarta and then a bus to Magelang. Direct buses are available but can be tiring; choose a sleeper bus if possible.
Travel Tips
  • Temple Visit
    Visit Borobudur early in the morning to avoid the heat and crowds.
  • Transport
    Use ride-hailing apps like Grab for easy transport within Magelang.
  • Clothing
    Wear comfortable walking shoes for exploring the temple grounds.
  • Hydration
    Carry a reusable water bottle to stay hydrated during your temple visits.
  • Booking
    Book your Borobudur entrance tickets online in advance.
Safety Tips
  • Sun Protection
    Use sunscreen and a hat as the sun can be very strong at the temple.
  • Scams
    Be wary of unofficial guides at the temple entrance.
  • Health
    Carry basic medication for common ailments.
  • Emergency
    Keep a list of emergency contacts in your wallet.
People Also Ask
  • Is Magelang near Yogyakarta?
    Yes, Magelang is about an hour's drive from Yogyakarta.
  • Can I visit Borobudur from Magelang?
    Yes, it is very close and easily accessible by local transport.
  • What is the best way to get to Magelang?
    The most common way is by bus or train to Yogyakarta, then a bus to Magelang.
  • Are there hotels in Magelang?
    Yes, there are many options ranging from homestays to luxury resorts.
  • Is it safe to travel to Magelang?
    Yes, it is a safe and welcoming city for tourists.
Quick Info
  • From Ubud, Bali, Indonesia
  • To Magelang, Jawa Tengah, Indonesia
  • Modes
Best Time to Travel

May to September, when the weather is clear for visiting Borobudur Temple.

Things to Do in Magelang
1
Borobudur Temple
The world's largest Buddhist temple and a UNESCO World Heritage site. It is a must-visit for any traveler.
2
Punthuk Setumbu
A hill offering the best sunrise views over Borobudur Temple and the surrounding volcanoes.
3
Mount Merapi Viewpoint
Enjoy stunning views of the active volcano from various spots around Magelang.
4
Kyai Langgeng Park
A large recreational park with gardens, rides, and a river, perfect for a family day out.
Tags
Ubud to Magelang Bali to Magelang Magelang travel Borobudur access Java transport Gilimanuk ferry Indonesia travel Magelang city guide