Can You Gift Stock to a 529 Plan? Capital Gains and Gift Tax

You cannot directly gift stock to a 529 plan. Federal law requires every 529 contribution to be made in cash, so if you want to use appreciated shares to fund an account, you have to sell the stock first, pay capital gains tax on any profit, and then contribute the proceeds.1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs Once the money is inside the 529, it grows tax-free and comes out tax-free for qualified education expenses. The tax on the sale, though, is yours to cover out of pocket.

Why 529 Plans Only Take Cash

Section 529 of the Internal Revenue Code says plainly that “purchases or contributions may only be made in cash.”1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs In practice that means personal checks, ACH transfers, wires, and money orders. Individual stocks, bonds, mutual fund shares, and ETFs are all off the table. Each 529 plan runs its own menu of investment portfolios and needs liquid dollars to buy into those portfolios on your behalf, so there is no mechanism for transferring securities in kind.

The Capital Gains Tax on the Sale

Selling stock is a taxable event. The IRS treats shares held by an individual investor as capital assets, and any profit on the sale is a capital gain.2Office of the Law Revision Counsel. 26 USC 1221 – Capital Asset Defined The gain is the difference between your cost basis (what you originally paid, plus reinvested dividends and adjustments) and the sale price.

How much you owe depends on how long you held the shares. Stock held longer than one year qualifies for long-term capital gains rates of 0%, 15%, or 20%, depending on your income. Stock held a year or less is taxed as short-term gain at your ordinary income tax rate, which is usually higher. You report the sale on IRS Form 8949, and the totals flow through to Schedule D of your return.3Internal Revenue Service. Instructions for Form 8949

Nothing about routing the proceeds into a 529 changes this. The contribution does not offset the gain, defer it, or reduce it. The 529’s tax advantage is separate: earnings inside the account grow federally tax-free, and withdrawals for qualified education expenses come out tax-free.4Internal Revenue Service. 529 Plans – Questions and Answers The person selling the stock owes the tax regardless of what they do with the cash next.

Before you sell, dig up the original purchase date and cost basis. Shares acquired years ago or through dividend reinvestment plans often have basis records scattered across old statements, and you’ll need accurate numbers to report the sale correctly.

Selling at a Loss and the Wash Sale Rule

If your shares are worth less than you paid, selling before contributing can look attractive because you harvest a capital loss to offset other gains. Be careful. The wash sale rule disallows the loss if you buy a “substantially identical” investment within 30 days before or after the sale. The IRS has taken the position that repurchasing the same investment inside a tax-advantaged account like an IRA still counts as a wash sale, and while it has not issued specific guidance on 529 plans, the same logic applies to any tax-advantaged account. If you plan to claim the loss, make sure the 529 portfolio you’re buying into doesn’t hold a fund substantially identical to the one you just sold.

Moving the Money From Brokerage to 529

The mechanics are straightforward once you decide to sell. Place a sell order in your brokerage account. Since May 2024, most securities settle on a T+1 basis, so cash is available one business day after the trade.5U.S. Securities and Exchange Commission. SEC Chair Gensler Statement on Upcoming Implementation of T+1 Next, send an ACH transfer or wire from the brokerage to the 529 plan’s deposit account. You’ll need the plan’s receiving bank routing number and your 529 account number; both appear on the plan’s contribution or gift deposit forms. Finally, confirm the deposit through the plan’s online portal. Sale to updated 529 balance usually takes three to five business days.

Gift Tax When You’re Funding Someone Else’s 529

Any contribution to a 529 owned by someone else, or naming someone else as beneficiary, counts as a gift for federal tax purposes. For 2026, the annual gift tax exclusion is $19,000 per donor per recipient.6Internal Revenue Service. Frequently Asked Questions on Gift Taxes A married couple can each give $19,000 to the same beneficiary, so up to $38,000 combined moves without a filing requirement. Contribute more and you file IRS Form 709 to report the excess against your lifetime exemption.

That lifetime gift and estate tax exemption sits at $15 million per person for 2026, following the increase enacted by the One, Big, Beautiful Bill signed into law in July 2025.7Internal Revenue Service. Whats New – Estate and Gift Tax Most donors won’t approach that ceiling, but Form 709 still matters if you make large gifts across multiple years or to multiple beneficiaries.

Superfunding Five Years at Once

A provision unique to 529 plans lets you front-load up to five years of annual exclusion gifts into a single contribution without triggering gift tax.1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs For 2026, an individual donor can put in up to $95,000 in one shot, and a married couple can combine to $190,000. You make the election on Form 709 to spread the gift ratably over the five-year period.

Two conditions apply. You can’t make additional annual-exclusion gifts to that same beneficiary during those five years without eating into your lifetime exemption. And if the donor dies before the five years run, the portion allocated to the remaining years is pulled back into the taxable estate. That second point is mainly an estate-planning concern for wealthier donors, but it’s worth knowing before writing a six-figure check funded by a stock sale.

State Deductions Can Soften the Tax Hit

There is no federal deduction for 529 contributions, but more than 30 states offer a state income tax deduction or credit for contributing to their in-state plan. Deduction ceilings vary widely, from a few hundred dollars up to unlimited, and most states require you to use their own plan to qualify. A handful allow the deduction for contributions to any state’s 529. If you’re liquidating a large position, checking your state’s deduction rules can recover part of what the capital gains tax takes off the top.

Check the Aggregate Contribution Limit First

Each state sets a ceiling on total 529 balances per beneficiary. Limits currently range from roughly $235,000 to nearly $600,000, with most plans capping around $500,000. Once a beneficiary’s balance across all accounts in that state’s program hits the limit, the plan stops accepting contributions, though existing investments keep growing. If you’re superfunding or dropping in a lump sum from a stock sale, confirm the plan’s aggregate limit before you initiate the transfer. It applies across every 529 in that state’s program for the same beneficiary, not per account.