When 4 hydrogen nuclei are hydrogen burned to 1 helium-4 (He-4), there is a relative atomic mass loss from reactants to product of 0.007291 = 0.7291 % ≅ 0.7 %.
Note
E = mc**2, and thus 1 kilogram of rest mass in energy terms is 1 kg * (3*10**8 m/s)**2 = 9*10**16 joules = about 2.5*10**10 KW-hours (Note 1 kW-hr = 3.6*10**6 J ) = the explosion energy yield of about 20 megatons of TNT ( 1 megaton TNT = about 4*10**15 J ) .
R = (rate of rest mass converted to heat energy)*[(H mass burnt)/(H mass converted)] = (L/c**2)*κ , where κ = [(H mass burnt)/(H mass converted)] = (1/0.007291) = (L_☉/c**2)*(L/L_☉)(1 M_☉ / 1.98855*10**30 kg)*(3.1557600*10**16 s / 1 Gyr)*κ = 9.270*10**(-3)*(L/L_☉)*(M_☉/Gyr) .We now assume the approximate mass-luminosity relation known from a combination of observations and stellar structure modeling: L = L_☉*(M/M_☉)**3.5 which holds approximately for the stellar mass 0.1--50 M_☉ (see Wikipedia: Main sequence: Lifetime, Wikipedia: Mass-luminosity relation). This gives us
R = 9.270*10**(-3)*[(M/M_☉)**3.5]*(M_☉/Gyr) .
t_lifetime = fM/R = (10 Gyr)*(f/f_☉)*[(M_☉/M)**2.5]in general where we have rounded the coefficient from 10.78 to 10 since the 0.78 quantity is insignificant to the accuracy we are working at. Note f is the general hydrogen burning efficiency factor and f_☉ = 0.1 is a fiducial value for the Sun NOT an exact value. Thus,
t_lifetime = fM/R = (10 Gyr)*(f/f_☉)*[(M/M_☉)**(-2.5)] in general , = 10 Gyr for the Sun , ≅ 3000 Gyr for a 0.1 M_☉ star assuming f ≅ 0.1 , ≅ 3*10**(-2) Gyr = 30 Myr for a 10 M_☉ star assuming f ≅ 0.1 .
Also note that if an initially pure hydrogen star converted all its hydrogen to helium-4 (He-4), it would decrease in mass by the same factor 0.007291.
____________________________________________________________________________ Table: Approximate Main-Sequence Lifetimes ____________________________________________________________________________ M t (M_☉) (Gyr or Myr) ____________________________________________________________________________ 0.1 3,200 Gyr 0.5 57 Gyr 0.88 13.8 Gyr ≅ Gyr the age of the observable universe 0.9 13 Gyr 1.0 10 Gyr ≅ lifetime of a G2 V star (e.g., the Sun) 1.5 3.6 Gyr 3 640 Myr 5 180 Myr 8 55 Myr 10 32 Myr 20 5.6 Myr 30 2.0 Myr 60 0.36 Myr ____________________________________________________________________________