The q-value is the amount of energy released or absorbed during a nuclear reaction, calculated as the difference in mass-energy between the reactants and products. This value is critical for understanding the energy changes associated with nuclear processes, including fusion and fission, which play a vital role in power generation and stellar phenomena.