Onion is needed to start gaining EXP to the next rank, not to actually rank up.

In short, once you hit 19 and use the onion to break cap to 20, you don't need any more.