It is somewhat normal for a sexually mature male dog’s penis to extend slightly beyond the prepuce, but it should not protrude substantially. If it remains extended continuously for more than a few minutes, it could indicate paraphimosis, a condition where the penis cannot be retracted. Paraphimosis can cause tissue injury, pain, and infection.
If your dog’s penis is extended for an extended period, consult a veterinarian for examination and treatment.