What level does Magikarp evolve at in pokemon diamond?

Magikarp is a fairly weak Pokemon that evolves into the very powerful Gyarados. In Pokemon Sapphire, it evolves at around level 20.