The Draft in the Civil War

The South instituted a draft in 1862, requiring three years of service for those selected between the ages of 18 and 35; later, as the war prospects dimmed, the pool was enlarged by taking in ages 17 to 50. A large number of exemptions were allowed and there were provisions for substitutions.

https://www.u-s-history.com/pages/h249.html