In laboratory settings, human locomotion encounters minimal opposition from air resistance. However, moving in nature often requires overcoming airflow. Here, the drag force exerted on the body by different headwind or tailwind speeds (between 0 and 15 m·s-1) was measured during walking at 1.5 m·s-1 and running at 4 m·s-1. To our knowledge, the biomechanical effect of drag in human locomotion has only been evaluated by simulations. Data were collected on eight male subjects using an instrumented treadmill placed in a wind tunnel. From the ground reaction forces, the drag and external work done to overcome wind resistance and to sustain the motion of the center of mass of the body were measured. Drag increased with wind speed: a 15 m·s-1 headwind exerted a drag of ∼60 N in walking and ∼50 N in running. The same tailwind exerted -55 N of drag in both gaits. At this wind speed, the work done to overcome the airflow represented ∼80% of the external work in walking and ∼50% in running. Furthermore, in the presence of fast wind speeds, subjects altered their drag area (CdA) by adapting their posture to limit the increase in air friction. Moving in the wind modified the ratio between positive and negative external work performed. The modifications observed when moving with a head- or tailwind have been compared with moving uphill or downhill. The present findings may have implications for optimizing aerodynamic performance in competitive running, whether in sprints or marathons.NEW & NOTEWORTHY This is the first study to assess the biomechanical adaptations to a wide range of wind speeds inside a wind tunnel. Humans increase their mechanical work and alter their drag area (CdA) by adapting their posture when walking and running against increasing head and tailwinds. The observed drag force applied to the subject is different between walking and running at similar headwind speeds.