How do you know?

How do you know if you have a miscarriage before it sticks? Like during your tww, how do you know if you were pregnant but lost it?