According to the Player's Handbook, a Rapier usually costs up to 25 gp.