A chemical reaction is considered spontaneous if A) the reaction releases heat, and B) if the entropy of the system increases. There is a formula known as the Gibbs Free Energy equation that predicts whether or not a reaction will be spontaneous; this formula considers the enthalpy side (heat) and the entropy side (disorder) of the reaction when making the prediction.
Hope this helps!