The optimal age to dehorn goats is within the first few weeks of life. Dehorning at a young age reduces stress, minimizes pain, and promotes faster healing. Waiting too long can make the process more challenging and discomforting for the goat.