Yes, you can take money out of an index fund whenever you want. You do it by selling shares, and the cash typically lands in your bank account within two to five business days. What the withdrawal actually costs you depends on two things: whether the fund is held in a regular brokerage account or a retirement account, and how long you’ve owned the shares. A careless sale in the wrong account can cost thousands more than a well-timed one.
How the Sale Works and When You Get the Cash
You don’t “withdraw” from an index fund the way you pull from a checking account. You place a sell order, shares convert to cash inside your brokerage, and then you transfer that cash out.
How the order executes depends on the fund’s structure. An index ETF trades on an exchange all day like a stock, so a sell at 10:15 a.m. fills at whatever the market shows at that moment. An index mutual fund processes all buy and sell orders once, after the market closes at 4 p.m. Eastern, at the fund’s net asset value for that day. Place a mutual fund sell at noon and it won’t price until the close.
The SEC requires most securities trades to settle one business day after the trade date, known as T+1.1U.S. Securities and Exchange Commission. Shortening the Securities Transaction Settlement Cycle – FAQ You generally can’t move the money to your bank until settlement finishes. An ACH transfer out is usually free and takes one to three more business days. Wire transfers arrive the same day but typically cost $15 to $25.
Taxes in a Regular Brokerage Account
Sell shares in a taxable brokerage account and any profit is a capital gain. The rate depends entirely on your holding period.2Office of the Law Revision Counsel. 26 USC 1221 – Capital Asset Defined
Held one year or less, the gain is short-term and taxed at your ordinary income rate.3Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses For 2026, federal income tax rates run from 10% to 37%.4Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 A large short-term gain can be taxed at the same rate as your paycheck.
Held more than one year, the gain qualifies for long-term rates, which are much lower.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses For 2026:
- 0% on taxable income up to roughly $49,450 (single) or $98,900 (married filing jointly).
- 15% above those thresholds up to about $545,500 (single) or $613,700 (joint).
- 20% above those upper limits.
Your brokerage tracks holding periods and reports everything on Form 1099-B after year-end, but most don’t withhold tax at the time of the sale.6Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions On a big gain, you may need a quarterly estimated payment to avoid an underpayment penalty.
Using Losses to Cut the Bill
If the shares lost value, the loss is useful. Capital losses offset capital gains dollar for dollar. Excess losses can then reduce ordinary income by up to $3,000 per year ($1,500 if married filing separately), with anything left over carrying forward to future years.7Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses
Watch the wash sale rule. Sell at a loss and buy the same or a substantially identical fund within 30 days before or after the sale, and the IRS disallows the loss for the current year.8Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount attaches to the cost basis of the replacement shares, so it isn’t gone forever, just delayed. A common workaround is to buy a different index fund tracking a similar but not identical benchmark.
Choosing Which Shares to Sell
If you’re selling only part of your position, the cost basis method determines which shares are considered sold, which changes the size of the gain. Three methods exist:
- First-in, first-out (FIFO) sells your oldest shares first. It’s the default for ETFs and stocks at most brokerages. Because older shares have usually appreciated the most, FIFO tends to produce the biggest taxable gain.
- Average cost divides your total investment by total shares owned to produce one average price per share. It’s the standard default for mutual funds and must be elected if you want it.9Internal Revenue Service. Mutual Funds (Costs, Distributions, Etc.)
- Specific identification lets you hand-pick the lots you’re selling. You can target high-basis shares to shrink the gain, or low-basis shares to harvest a loss.
Most platforms let you change the method in account settings before you submit the order. Once the trade settles, you generally can’t switch it retroactively.
Withdrawals from a Retirement Account
Selling shares inside a Traditional IRA, Roth IRA, or 401(k) doesn’t trigger capital gains tax on its own. The tax event is the withdrawal from the account. You can rebalance inside a retirement account without any tax consequence.
The 10% Early Withdrawal Penalty
Pull money from a Traditional IRA or 401(k) before age 59½ and the IRS adds a 10% penalty on top of regular income tax on the taxable portion.10Office of the Law Revision Counsel. 26 USC 72 – Section: 10-Percent Additional Tax for Premature Distributions A $50,000 early withdrawal in the 22% bracket costs $11,000 in income tax plus $5,000 in penalty. Nearly a third of the money goes to the federal government.
Exceptions That Skip the Penalty
Several situations waive the 10%, though ordinary income tax still applies on Traditional account distributions:11Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions
- Leaving your employer during or after the year you turn 55 lets you take penalty-free distributions from that employer’s 401(k) (age 50 for public safety employees). It only applies to the plan at the employer you just left, not to IRAs or older 401(k)s.
- Substantially equal periodic payments (SEPP) based on your life expectancy, once started, must continue for five years or until age 59½, whichever is later. Stopping early triggers a recapture tax on the earlier penalty-free distributions.12Internal Revenue Service. Substantially Equal Periodic Payments
- Disability, qualifying medical expenses, a first-time home purchase (IRA only, up to $10,000), and health insurance premiums while unemployed (IRA only) can all qualify.
Roth IRAs Work Differently
Roth contributions went in after tax, so you can pull your original contributions out at any time, at any age, tax-free and penalty-free. Earnings are stricter. To pull earnings tax-free and penalty-free, you must be at least 59½ and the account must have been open at least five years. Take earnings before meeting both, and the earnings portion can face income tax and the 10% penalty.10Office of the Law Revision Counsel. 26 USC 72 – Section: 10-Percent Additional Tax for Premature Distributions
Required Withdrawals After Age 73
Traditional IRAs, SEP IRAs, SIMPLE IRAs, and most 401(k) plans can’t defer tax forever. Starting the year you turn 73, you must take a required minimum distribution each year.13Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs Under SECURE 2.0, the age stays at 73 through 2032 and rises to 75 starting in 2033.
Miss an RMD and the excise tax is 25% of the shortfall, reduced to 10% if corrected within the IRS correction window.14Office of the Law Revision Counsel. 26 USC 4974 – Excise Tax on Certain Accumulations in Qualified Retirement Plans Roth IRAs are exempt from RMDs during the original owner’s lifetime.
Extra Taxes That Hit Higher Incomes
Two more costs can pile on when the sale is large. Both are tied to your modified adjusted gross income (MAGI), so a single big sale can push you past a threshold you’d normally sit under.
The Net Investment Income Tax adds 3.8% on investment income, including capital gains, once MAGI passes $200,000 (single) or $250,000 (married filing jointly).15Internal Revenue Service. Topic No. 559, Net Investment Income Tax These thresholds don’t adjust for inflation. A $100,000 long-term gain that crosses the line adds $3,800 on top of the regular capital gains rate.
Medicare uses your MAGI from two years earlier to set income-related monthly adjustment amounts (IRMAA) on Part B premiums. For 2026, the standard Part B premium is $202.90 per month. Single filers with MAGI above $109,000 and joint filers above $218,000 pay progressively higher surcharges, up to $689.90 per month at the top.16Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles A one-time large sale can spike MAGI for one year and trigger surcharges you wouldn’t otherwise owe. Splitting a big sale across two calendar years is one way to stay under.
Inherited Index Funds
If you inherited the shares in a taxable account, the tax rules work in your favor. Inherited property gets a new cost basis equal to fair market value on the date of the original owner’s death.17Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent A fund your parent bought for $20,000 that’s worth $120,000 at death gives you a $120,000 basis. Sell soon after at $121,000 and the taxable gain is $1,000, treated as long-term regardless of how quickly you sell.
Inherited shares in a Traditional IRA are a different situation. Most non-spouse beneficiaries who inherited after 2019 must empty the account within 10 years of the original owner’s death, and if the owner had already started RMDs, annual distributions are also required during those 10 years. Spreading withdrawals across all 10 years, rather than waiting until year 10, gives you more control over which tax brackets you land in.
Placing the Order
Your brokerage will ask for either a share count or a dollar amount, and for ETFs, an order type. A market order fills immediately at whatever the market shows. A limit order sets a minimum price you’ll accept and won’t fill if the market never reaches it.18Investor.gov. Types of Orders For index mutual funds, order type doesn’t matter; everything prices at the end-of-day NAV.
Keep the Form 1099-B your brokerage issues after year-end. It reports the proceeds and cost basis for every sale and is what you’ll use to complete your federal return.6Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions