In a word - expensive. Gearboxes are complex pieces of equipment, and not only cost a lot of money to produce, they also require a great deal of labour to replace.
The exact figure will depend on the gearbox fitted to your car, how much labour is required to replace it, and the make of your car. Expect to pay a four-figure sum for a replacement gearbox.