About 5 weeks 1st miscarriage ... just draining

Amber

Is it normal after/during a miscarriage that you are just so drained and backaches that won’t go away? Bleeding for 2 days has subsided but the aches and pains seemed to have started up after that... and when is it ok to start having sex again?