# Is there a formula to calculate any star mass from Luminosity, Radius, and/or Temperature (K)? [duplicate]

I know there is the Mass-Luminosity relationship, but I am wondering if there is a more accurate formula I can use based on the data points I have generated:

• Absolute Magnitude (based on class and type of star in relation to H.R. diagram)
• Temperature (same as above; in Kelvins)
• Luminosity (calculated from Absolute Magnitude)
• Radius (calculated from Temperature and Luminosity)

Basically the last 2 pieces I need to calculate are Gravity and Mass which is a pain because the one formula I have requires one of them to find the other. So far everything is calculated from another piece and so all of my values are in line with each other.

I could use the Mass-Luminosity relationship if I must, but are there any other formulas? I couldn't find anything that didn't require gravity. I doubt it, but there isn't by chance something to calculate gravity from my data points is there?

• Please say exactly what data you are working with, rather than what you have calculated. If it is just a spectral classification then you will have to guess the mass using that. Apr 14 at 8:13
• Note that the Mass-Luminosity relationship is only valid for stars on the Main Sequence, and does not apply to giants (or supergiants). So you can't use just the luminosity. Apr 14 at 12:17
• @ProfRob My data all stems from randomly picking a type of star and then using that on a random, but appropriate area on the HR diagram to give me the absolute magnitude and temperature. None of it is real data, just data that is random, but in line based on all of the formulas I have found and coded restrictions to make sure they average to the diagram. Apr 14 at 15:17
• The problem you have then is that the position of a star on the HR diagram does not just depend on its mass. i.e. there is no one-to-one mapping between mass and HR diagram position. Apr 14 at 16:39
• @ProfRob Ah okay. Then it appears I need another set of common ranges for mass based on star type/spectral classification. If you would like to elaborate your comment into an answer, I'll accept it. Apr 14 at 16:54