Among the 25 parameters established by the European Standard (EN14214:2012) to certify the quality of biodiesel, the oxidative stability is of concern, particularly when storing biodiesel for long periods. The products of biodiesel degradation are corrosive and lead to the formation of engine deposits that can block the filters and fuel injectors. Thus, EN14214:2012 establishes a period of 8 h for the oxidative stability of biodiesel. The main goal of this work is to study the effect of storage conditions in the oxidative stability of biodiesel and to understand how to control this property on the different stages of biodiesel production, namely through: (1) the use of different raw‐materials, blending, and production strategies; (2) the addition of antioxidants. NIR spectroscopy was used to follow the transesterification reaction and to analyze the different biodiesel samples. The storage conditions, such as sunlight exposure, temperature and presence of air, have a great impact on the oxidative degradation of biodiesel. Actually, for example, a decrease in 50% of the oxidative stability was obtained after less than 20 days of storage in an opaque plastic bottle. On the other hand, the addition of 20% (w/w) of palm oil to rapeseed or soybean oils allows to increase the oxidative stability by 1 h and the addition of palm biodiesel to rapeseed or soy biodiesel has a similar effect. Hydroquinone showed to be a very effective antioxidant. In fact, the addition of 114 mg/kg lead to an increase in the induction period of soybean biodiesel of more than 4 hours, whereas 65 mg/kg is sufficient to reach the 8h established in the European Norm. © 2017 American Institute of Chemical Engineers Environ Prog, 37: 1031–1040, 2018