Depo-Provera works for about 3 months at a time. To prevent pregnancy, you have to get 1 shot from your doctor 4 times a year, about 12 to 14 weeks apart. If you get it in the first 7 days of your cycle, it works right away. If you don't, you'll need to use another form of birth control for 1 week.