Estimate the tax on an investment sale from the holding period and the rates you expect to pay.
Model and assumptions. The gain is the sale price less the purchase price. A holding of more than 12 months is long-term and taxed at the long-term rate you enter; 12 months or less is short-term and taxed at the short-term rate, which is usually your ordinary rate. A loss owes no tax here, and its value as a deduction against other gains or income is not counted. The defaults of 24% and 15% are examples, not your rates: the long-term rate is 0%, 15% or 20% depending on taxable income, and the model leaves out the 3.8% net investment income tax, state tax and the cost basis rules for gifts, inherited shares and wash sales.