You can buy a house with stocks, and there are four practical ways to do it: sell shares and use the cash, take out a pledged asset mortgage that uses the portfolio as collateral, qualify for an asset depletion loan based on the account’s size, or in rare private deals transfer shares directly to the seller. Which one fits depends on how large the portfolio is, how much gain is built into it, and whether you want to stay invested. Each route has different tax consequences and different lender rules.
Selling Shares and Using the Cash
The most direct method is to sell, wait for settlement, and wire the proceeds to closing. Since May 2024, most U.S. stock trades settle on a T+1 basis, so cash from a sale becomes available one business day after execution.1eCFR. 17 CFR 240.15c6-1 – Settlement Cycle Moving the settled cash from brokerage to bank usually takes another one to three business days.
Mortgage closings run on tight timelines. Aim to have the money sitting in your bank account roughly a week before closing so an unexpected hold on the brokerage side doesn’t put you in breach of the purchase contract.
What Selling Stocks Costs You in Taxes
Selling shares to buy a home is a taxable event, and the bill can be large enough to change what you can afford. The IRS splits capital gains into short-term (shares held one year or less) and long-term (held more than a year).2Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses Short-term gains are taxed as ordinary income, up to 37%. Long-term gains are taxed at 0%, 15%, or 20% for 2026, with the 20% bracket kicking in above $545,500 in taxable income for single filers and $613,700 for married couples filing jointly.3Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates A large liquidation can push your other income into a higher bracket in the same year.
On top of that, high earners pay a 3.8% Net Investment Income Tax on capital gains once modified adjusted gross income crosses $200,000 single or $250,000 joint.4Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax Those thresholds don’t adjust for inflation. A $600,000 sale with a $200,000 basis produces a $400,000 gain that, combined with federal tax and NIIT, can exceed $80,000 before any state tax. Gains are reported on Schedule D of Form 1040.5Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses
If you hold positions with losses, selling them in the same year reduces the gain. Net losses beyond that can deduct up to $3,000 against ordinary income annually, with the rest carried forward. Running the tax math with a professional before you place the trades is where most people save real money.
Pledged Asset Mortgages
A pledged asset mortgage lets you keep the portfolio invested and borrow against it. The account stays in your name, the lender places a lien on it, and no shares are sold. That means no capital gains triggered and no interruption to compounding.
Lenders don’t credit the account at face value. They typically count 50% to 70% of the portfolio as usable collateral because prices move. A $500,000 account might qualify as $300,000 toward the loan. The haircut depends on what’s in the account: blue-chip stocks and index funds tend to get better treatment than volatile small-caps or concentrated single-stock holdings.
Rates on these loans usually run somewhat higher than conventional mortgages, reflecting the volatility of the collateral. Expect trading restrictions inside the pledged account too. Many lenders limit withdrawals and require approval to sell positions that would drop the balance below the required threshold.
Collateral Calls in a Down Market
The main risk is a market drop that pushes the account below the maintenance level. When that happens, the lender issues a collateral call: deposit more assets or cash, or the lender liquidates holdings to close the gap. FINRA sets the floor for margin accounts at 25% of current market value, but firms can set their own maintenance requirements at 30% or 40% and raise them without advance notice.6FINRA. Know What Triggers a Margin Call A forced sale often lands at exactly the wrong time, locking in a loss you’d otherwise wait out.
You Cannot Pledge Retirement Accounts
IRAs and 401(k) balances are off the table as collateral. Using an IRA as security for a loan is a prohibited transaction, and the IRS treats the entire account as distributed on the first day of the year it happens, wiping out the tax-advantaged status.7Internal Revenue Service. Retirement Topics – Prohibited Transactions The 401(k) rules similarly bar extending credit between the plan and a disqualified person. Only taxable brokerage accounts can be pledged.
Asset Depletion Loans for Portfolio-Heavy Buyers
Asset depletion is a way for lenders to turn a portfolio into qualifying income for buyers who don’t have a paycheck to point to. The lender divides your liquid assets by a set number of months, often 360, to produce a theoretical monthly income figure. Under that formula a $1,000,000 portfolio generates roughly $2,778 in qualifying monthly income.
You aren’t required to actually draw the account down on that schedule. The math simply lets your finances fit into standard debt-to-income ratios. This method is aimed at retirees, self-employed borrowers, and anyone whose wealth sits mostly in investments. Some lenders apply a haircut to the portfolio before dividing, so the qualifying income can vary a lot from one institution to the next. Shopping several lenders matters here more than in most mortgage situations.
Transferring Shares Directly to the Seller
In private sales, a buyer and seller can agree that shares change hands instead of cash. These deals are uncommon. The purchase agreement has to name the exact securities, the number of shares, and a specific date and time for valuation. The transfer itself moves through the Automated Customer Account Transfer Service or a direct brokerage-to-brokerage delivery.8U.S. Securities and Exchange Commission. Transferring Your Brokerage Account – Tips on Avoiding Delays
Swapping stock for property does not sidestep tax. The IRS treats any exchange of property as a realization event, so the gain equals the fair market value of the property received minus your basis in the shares given up, fully recognized in that year.9Office of the Law Revision Counsel. 26 USC 1001 – Determination of Amount of and Recognition of Gain or Loss The seller takes a new cost basis in the shares equal to the property’s fair market value at the time of the exchange.10Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets Both sides need attorneys who know these structures; a mistake in the agreement can create title problems that are expensive to unwind.
What Lenders Will Ask For
Whether you’re selling, pledging, or qualifying on assets, the lender will want detailed records of the brokerage account. Fannie Mae’s guidelines call for the most recent two months of consecutive statements showing account holder identification, account numbers, all buy and sell transactions, and ending balances.11Fannie Mae. Verification of Deposits and Assets Quarterly statements are acceptable if your brokerage doesn’t issue monthly ones.
Lenders also want to see funds “seasoned” in the account for at least 60 days before application. A large deposit that appears right before you apply will draw questions and can slow approval. Expect the lender to review your tax returns, including Schedule D, to check that what the statements show matches what you’ve reported.5Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses A final verification usually runs within 24 to 48 hours of closing to confirm balances haven’t shifted materially since underwriting.