Formula
Ordinary tax = shares × max(0, exercise value − strike) × ordinary rate
Capital tax = shares × max(0, sale price − exercise value) × capital-gains rate
What the result means
The main result is estimated total tax from the two modeled components. Net proceeds subtract both tax components and the option exercise cost from gross sale proceeds.
Actual treatment depends on option type, holding period, payroll withholding, AMT, losses, deductions, and jurisdiction. Enter rates that fit your situation.