Bosnia is located in the western Balkans, bordering Croatia (932 km or 579 mi) to the north and south-west, Serbia (302 km or 188 mi) to the east, and Montenegro (225 km or 140 mi) to the southeast. It lies between latitudes 42° and 46° N, and longitudes 15° and 20° E.
The country's name comes from the two regions Bosnia and Herzegovina, which have a very vaguely defined border between them. Bosnia occupies the northern areas which are roughly four-fifths of the entire country, while Herzegovina occupies the rest in the southern part of the country.
The country is mostly mountainous, encompassing the central Dinaric Alps. The northeastern parts reach into the Pannonian basin, while in the south it borders the Adriatic. Dinaric Alps generally run in east-west direction, and get higher towards the south. The highest point of the country is peak Maglic at 2,386 m, at the Montenegrin border. Major mountains include Kozara, Grmec, Vlašic, Cvrsnica, Prenj, Romanija, Jahorina, Bjelašnica and Treskavica.
Overall, close to 50% of Bosnia and Herzegovina is forested. Most forest areas are in Central, Eastern and Western parts of Bosnia. Herzegovina has drier Mediterranean climate, with dominant karst topography. Northern Bosnia (Posavina) contains very fertile agricultural land along the river Sava and the corresponding area is heavily farmed. This farmland is a part of the Parapannonian Plain stretching into neighboring Croatia and Serbia. The country has only 20 kilometres (12 miles) of coastline, around the town of Neum in the Herzegovina-Neretva Canton. Although the city is surrounded by Croatian peninsulas, by the international law, Bosnia and Herzegovina has a right of passage to the outer sea.
The major cities are the capital Sarajevo, Banja Luka in the northwest region known as Bosanska Krajina, Bijeljina and Tuzla in the northeast, Zenica and Doboj in the central part of Bosnia and Mostar, the capital of Herzegovina.
There are seven major rivers in Bosnia and Herzegovina. The Sava is the largest river of the country, but it only forms its northern natural border with Croatia. It drains 76% of the country's territory into the Danube and the Black Sea. Bosnia and Herzegovina is therefore also a member of the International Commission for the Protection of the Danube River (ICPDR).
The Una, Sana and Vrbas are right tributaries of Sava river. They are located in the northwestern region of Bosanska Krajina.
The Bosna river gave its name to the country, and is the longest river fully contained within it. It stretches through central Bosnia, from its source near Sarajevo to Sava in the north.
The Drina flows through the eastern part of Bosnia, and for the most part it forms a natural border with Serbia.
The Neretva is the major river of Herzegovina and the only major river that flows south, into the Adriatic Sea.
Phytogeographically, Bosnia and Herzegovina belongs to the Boreal Kingdom and is shared between the Illyrian province of the Circumboreal Region and Adriatic province of the Mediterranean Region. According to the WWF, the territory of Bosnia and Herzegovina can be subdivided into three ecoregions: the Pannonian mixed forests, Dinaric Mountains mixed forests and Illyrian deciduous forests.