Here's one workable upgrade path from Leopard to Mavericks (assuming you have no other Macs that already have a newer version of OS X.):
Purchase Snow Leopard.
Order Snow Leopard here:
http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
Install, and update to 10.6.8 (which will give you the OS X App Store)
You COULD also purchase Lion, or Mountain Lion, and install that - but you would still need Snow Leopard first (because you need the App Store to download either of those, and if you have Snow Leopard, you can bypass both Lion and Mountain Lion, and go straight to Mavericks)
Download Mavericks, install.
And, you can avoid Snow Leopard too - if you have access to a newer Mac, running a newer version of OS X, where you could download the Mavericks installer. You just need the App Store, downloading Mavericks with your AppleID account. So, Snow Leopard, or higher to get Mavericks.