Sperm donor

How old do you have to be to get a sperm donor? Always wanted a baby but honestly rather take care of the baby alone than with someone not willing to step up.