How long testicular swelling lasts depends on the cause. If testicular torsion is the cause, immediate detorsion is required within 48 hours of the onset of testicular swelling and pain. Symptoms should improve immediately after the procedure. In the case of an infection causing swelling, symptoms typically improve within 13 days of antibiotic treatment initiation, but it may take up to 4 weeks for complete resolution.