The factors that mainly affect in the formation of magma can be summarized into three: Temperature, Pressure and composition. Temperature plays a role in the formation of the melts in the magma. Generally magma has a temperature range from 700-1300 degrees Celsius.