See the tax and 10% penalty on an early withdrawal, the cash you keep, and what the money would have grown to by retirement.
Model and assumptions. Each rate is applied to the full withdrawal: federal tax, state tax and the additional tax on early distributions, which is 10% unless an exception applies. The cash you keep is the withdrawal less all three, never below zero. The retirement value is the whole withdrawal compounded once a year at the expected return for the whole years left, as a measure of what spending it now gives up. Real tax depends on your bracket after the withdrawal is added to your income, and exceptions such as disability, a first-home purchase for an IRA or separation from service at 55 can remove the penalty.IRS Topic 558: additional tax on early distributions