You're typically considered no longer contagious after you've been on a regimen of antibiotics for a period of time, which depends on your type of infection. For example, you're no longer contagious with strep throat after you've been on antibiotics for 24 hours and no longer have a fever.