Free Spectral Class Estimator
Estimate which spectral class (O, B, A, F, G, K, M) a star belongs to based on its effective temperature.
K
Spectral Class Code
3
Peak Wavelength501.5 nm
Spectral Class Code vs Effective Temperature
Spectral Classification (OBAFGKM)
Stars are classified by surface temperature into spectral types:
The output code: 7=O, 6=B, 5=A, 4=F, 3=G, 2=K, 1=M.
Example Calculation
The Sun at 5778 K.
- 015778 K falls between 5200 and 6000 K.
- 02Spectral class: G (code 3)
- 03Peak wavelength: 2897800 / 5778 = 501.5 nm (green)
- 04The Sun is a G2V star.