Volatility as the quote
The pricing formula maps volatility to price and is monotonic in it: more volatility always means a more valuable option. A monotonic function can be inverted, so given a market price you can solve for the volatility that reproduces it.
That number is the implied volatility, and it is how options are quoted and compared in practice. Traders discuss vol rather than premium, and for good reason.
A premium is not comparable across contracts. A 30 call and a 5 call may be identical value propositions differing only in strike, spot and maturity. Converting to implied volatility divides all of that out, leaving one number on a common scale.
def implied_vol(price, S, K, r, T, kind="call", lo=1e-6, hi=5.0):
for _ in range(200): # bisection: robust, monotone
mid = (lo + hi) / 2
if black_scholes(S, K, r, mid, T, kind) < price:
lo = mid
else:
hi = mid
return (lo + hi) / 2
implied_vol(9.925, 100, 100, 0.04, 1.0) # about 0.200, recovering the input
Bisection rather than a faster method, because monotonicity guarantees it converges and nothing guarantees a good starting guess.

