How long does sperm stay in your body? Is it possible for it to drain out if I go to the toilet?

Sperm remains 'active' and capable of fertilizing an egg for 48 hours after ejaculation. Within a few minutes, it will have got into the uterus and hence doesn't drain out of your body even if you get up or go to the toilet.