How can I estimate the capital gains tax that may be owed on a stock sale?

I recently sold stock that was purchased through ESOP (employee stock ownership program).  How can I estimate the capital gains tax that may be owed on that sale?