use the apparent/absolute magnitude formula:
m-M = 5log(d) - 5
m = apparent, M= absolute, d = distance in parsecs.
To use this, though, you need to estimate the absolute magnitude. One way to do this is:
1. Look at the star, get a spectrum of the energy/light emitted from the star...