<p>Finding a unique solution is not so easy. In principle this information is encoded in the Hertzsprung-Russell diagram which shows the absolute magnitude of stars over their colour index. And you then can attribute certain regions to certain star types (main sequence, white dwarfs, giants etc), which is somewhat encoded in the spectral type as well.</p>
<p>I found a tabular way to describe this <a href="https://sites.uni.edu/morgans/astro/course/Notes/section2/spectraltemps.html" rel="nofollow noreferrer">in these lecture notes</a> (which seems the same you found). One may find papers which discuss the colour-luminosity relation for certain star types empirically, but I'm not aware of a comprehensive overview with approximate equations. I found in the (meanwhile slightly dated) book (<a href="https://www.amazon.de/neue-Kosmos-Einf%C3%BChrung-Astronomie-Astrophysik/dp/3540421777" rel="nofollow noreferrer">Unsöld: Neuer Kosmos</a>) an overview diagram.<a href="https://i.sstatic.net/GYxhh.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GYxhh.jpg" alt="HRD" /></a></p>
<p>It's evident that the relation between spectral type and luminosity class on the one hand and the colour on the other hand is not a simple one - so going by a look-up table as linked with the lecture notes seems the easiest approach. You could possibly get approximate data from interpolating from the shown diagram.</p>
<p>That diagram seems an author-generated diagram, but some references given in that chapter are e.g. Houk (1976) or Yamashita, Nariai and Norimoto &quot;An Atlas of Representative Stellar Spectra&quot;. I'm reasonably sure there exist something more comprehensive based on Gaia data (but I didn't find it quickly).</p>

CC BY-SA 4.0
2024-03-09T01:29:46.643Z
Thanks so much for this answer! The graphs on the Hertzsprung-Russell diagram are definitely not a direct relationship, which I guess sort of does explain why no one's created a 1-to-1 table. I suppose I'll be using the look-up table then.
J minding
CC BY-SA 4.0
2024-03-10T02:04:29.700Z
For dwarfs only (luminosity class V), there's Eric Mamajek's ["A Modern Mean Dwarf Stellar Color and Effective Temperature Sequence"](https://www.pas.rochester.edu/~emamajek/EEM_dwarf_UBVIJHK_colors_Teff.txt) which has a host of global properties (such as absolute magnitude) and photometric colors (e.g. Bp-Rp from Gaia data) as a function of spectral type. I don't know of an equivalent for giants or supergiants though.
astrosnapper
CC BY-SA 4.0
2024-03-08T14:04:50.103Z
2024-03-10T02:00:53.073Z
2024-03-10T02:00:53.073Z
planetmaker
<p>I'm working on a project with stars where, given their spectral type (such as B0IV), I want to be able to know its approximate absolute magnitude.</p>
<p>I have searched online and found data sources like <a href="https://sites.uni.edu/morgans/astro/course/Notes/section2/spectraltemps.html" rel="noreferrer">this</a> one from the University of Northern Iowa or a similar table at the back of a bright orange textbook called An Introduction to Modern Astrophysics by Carroll and Ostlie.</p>
<p>However, these data sources are missing data values for spectral types like B4V, and they don't have any data for luminosity classes II and IV.</p>
<p>I was wondering if anyone knows of any other data sources where I could enter a spectral type and get an absolute magnitude, or if there was any way I could fill in the missing values myself given the data that's already there. I understand that these data values will be approximate, and that's okay for the scope of my project.</p>
<p>Thanks!</p>

CC BY-SA 4.0
2024-03-09T01:20:02.343Z
Indeed! I have been searching for this online, but have not seen any.
J minding
<magnitude><raw-data><absolute-magnitude><spectral-type>
Query spectral type for absolute magnitude
J minding
# Query spectral type for absolute magnitude

(Asked by: username_0 on 2024-03-08)

I'm working on a project with stars where, given their spectral type (such as B0IV), I want to be able to know its approximate absolute magnitude.

I have searched online and found data sources like [this](https://sites.uni.edu/morgans/astro/course/Notes/section2/spectraltemps.html) one from the University of Northern Iowa or a similar table at the back of a bright orange textbook called An Introduction to Modern Astrophysics by Carroll and Ostlie.

However, these data sources are missing data values for spectral types like B4V, and they don't have any data for luminosity classes II and IV.

I was wondering if anyone knows of any other data sources where I could enter a spectral type and get an absolute magnitude, or if there was any way I could fill in the missing values myself given the data that's already there. I understand that these data values will be approximate, and that's okay for the scope of my project.

Thanks!

**Tags:** magnitude, raw-data, absolute-magnitude, spectral-type

> **Comments:**
> **username_0**: Indeed! I have been searching for this online, but have not seen any.  

---

## 1 answers

### Answer by username_1 on 2024-03-08. Score: 3 | Accepted answer

Finding a unique solution is not so easy. In principle this information is encoded in the Hertzsprung-Russell diagram which shows the absolute magnitude of stars over their colour index. And you then can attribute certain regions to certain star types (main sequence, white dwarfs, giants etc), which is somewhat encoded in the spectral type as well.

I found a tabular way to describe this [in these lecture notes](https://sites.uni.edu/morgans/astro/course/Notes/section2/spectraltemps.html) (which seems the same you found). One may find papers which discuss the colour-luminosity relation for certain star types empirically, but I'm not aware of a comprehensive overview with approximate equations. I found in the (meanwhile slightly dated) book ([Unsöld: Neuer Kosmos](https://www.amazon.de/neue-Kosmos-Einf%C3%BChrung-Astronomie-Astrophysik/dp/3540421777)) an overview diagram.[![HRD](https://i.sstatic.net/GYxhh.jpg)](https://i.sstatic.net/GYxhh.jpg)

It's evident that the relation between spectral type and luminosity class on the one hand and the colour on the other hand is not a simple one - so going by a look-up table as linked with the lecture notes seems the easiest approach. You could possibly get approximate data from interpolating from the shown diagram.

That diagram seems an author-generated diagram, but some references given in that chapter are e.g. Houk (1976) or Yamashita, Nariai and Norimoto "An Atlas of Representative Stellar Spectra". I'm reasonably sure there exist something more comprehensive based on Gaia data (but I didn't find it quickly).

> **Comments:**
> **username_0**: Thanks so much for this answer! The graphs on the Hertzsprung-Russell diagram are definitely not a direct relationship, which I guess sort of does explain why no one's created a 1-to-1 table. I suppose I'll be using the look-up table then.  
> **username_2**: For dwarfs only (luminosity class V), there's Eric Mamajek's ["A Modern Mean Dwarf Stellar Color and Effective Temperature Sequence"](https://www.pas.rochester.edu/~emamajek/EEM_dwarf_UBVIJHK_colors_Teff.txt) which has a host of global properties (such as absolute magnitude) and photometric colors (e.g. Bp-Rp from Gaia data) as a function of spectral type. I don't know of an equivalent for giants or supergiants though.  

---

