When is it not safe to fly when you're pregnant?

After 36 weeks. I recommend to my patients that they don't fly after 36 weeks. I prefer them to not do long flights after 32 weeks. If the pregnancy is complicated and may need early delivery, then stop flying before 36 weeks.