If I sell an investment with significant capital gains, do I need to worry about being penalized (in addition to the tax owed) for not withholding enough? If so, is there a way to avoid these penalties such as pre-paying tax on the income shortly after the sale? For example (neglecting deductions), suppose I made $100k through my employer and had $24k withheld equaling the tax owed from my regular income, but during the year I also sold an investment with an additional $100k of capital gains, totaling $200k of income but only $24k of tax withheld.