401(k) early withdrawal tax and penalty
calculate_401k_early_withdrawalRuns the 401k.loans early withdrawal calculator for a cash-out or hardship withdrawal: amount taken out (or the gross needed to net a target), income tax at your marginal rates, the 10% additional tax, what you keep, what the plan withholds up front (20% mandatory, or 10% default for hardship), the check amount, and the balance due or refund at filing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "<amount>"
},
"name": "calculate_401k_early_withdrawal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "gross" = amount is what you take out of the plan; "net" = amount is what you need in hand after tax. Default gross. | gross |
| amount | Yes | Dollar amount, e.g. 20000. See mode. | |
| hardship | No | true for a hardship withdrawal (10% default withholding instead of the 20% that applies to most other withdrawals). Default false. | |
| state_tax_pct | No | State income tax rate in percent, 0 to 15. Default 0. | |
| federal_bracket_pct | No | 2026 federal income tax bracket in percent (Rev. Proc. 2025-32): 10, 12, 22, 24, 32, 35 or 37. | |
| additional_10pct_tax_applies | No | true if you are under 59.5 and no exception applies, so the 10% additional tax is due. Default true. |