how far along do u have to be before help is needed?

If you have a miscarriage, how many weeks do u have to be to go to the emergency room for help? i know if its early it can be passed at home without help.