Warming up for at least 5 minutes (sometimes longer) is crucial, because it gets your blood flowing to your muscles and lets your heart rate adjust. But most of the time, stretching is best done after the physical activity, when muscles are warmest to reduce lactic acid build up.