You've built up a solid stock portfolio over the years, and now you're ready to buy a house. The math seems simple: sell $200,000 worth of stock, put it toward a down payment, and you're set.
But here's where many people get a painful surprise. "Many people think that if they sell $300,000 of stock, they have $300,000 for their down payment," says Crystal Olenbush, a luxury real estate expert at AustinRealEstate.com. "After all taxes are paid on the gain, the net proceeds available may be only $210,000 or $220,000."
That gap between what you think you'll net and what you actually keep can derail your home purchase plans, or force you to scramble for additional funds at the worst possible time. The tax implications alone are tricky enough, but add in mortgage underwriting requirements, timing constraints, and the emotional weight of liquidating investments you've held for years, and this decision becomes genuinely complex.
Chad Silver, a tax attorney and the founder of Silver Tax Group, has seen clients lose $80,000 in a single transaction by misunderstanding tax-lot selection rules. Jeffrey Hensel of hard money lender North Coast Financial regularly watches buyers struggle when six-figure stock sale deposits hit their accounts during escrow, triggering manual underwriting reviews that can delay closings.
The reality is that selling stock to buy a house involves more than just clicking "sell" in your brokerage account. You'll need to understand capital gains tax rates (which changed for 2026), plan your timing around mortgage underwriting requirements, and assess whether alternatives like borrowing against your portfolio might make more sense.
Here's what you actually need to know when you sell stock to fund a home purchase.
How capital gains tax works when selling stock for a house
Let's start with the tax reality. Every stock sale triggers capital gains tax. There's no special exemption just because you're buying a house.
The tax you'll pay depends on two critical factors: how long you've held the stock and your total income for the year.
Long-term vs. short-term capital gains
If you've held the stock for more than one year, you'll qualify for long-term capital gains rates, which are significantly lower than ordinary income tax rates. For 2026, here are the brackets you need to know:[1]
- 0% rate: Single filers with taxable income up to $49,450; married filing jointly up to $98,900
- 15% rate: Single filers from $49,451 to $545,500; married filing jointly from $98,901 to $613,700
- 20% rate: Single filers over $545,500; married filing jointly over $613,700
Hold the stock for a year or less, and you'll face short-term capital gains, which are taxed as ordinary income at rates up to 37%.[2]
The NIIT trap
Here's where it gets expensive for higher earners. If your modified adjusted gross income exceeds $200,000 as a single filer or $250,000 married filing jointly, you'll pay an additional 3.8% net investment income tax (NIIT) on your capital gains.[3] This threshold isn't adjusted for inflation, so more people hit it each year.
How much you'll actually owe: A real example
Let's walk through a realistic scenario. Say you're married, earn $120,000 in household income, and sell $100,000 of stock you bought for $40,000 three years ago.
- Your gain: $100,000 sale - $40,000 cost basis = $60,000 gain
- Your bracket: With $120,000 income plus $60,000 gain ($180,000 total), you're in the 15% long-term capital gains bracket
- Federal tax: $60,000 × 15% = $9,000
- Net proceeds: $100,000 - $9,000 = $91,000
"The borrowing against stock, according to my experience in the field, solely makes sense after one reaches the one million dollar portfolio mark," notes Silver.
"One of our clients financed a new luxurious home acquisition by defaulting out of his brokerage to the first-in, first-out accounting. He avoided capital gains tax by failing to choose shares with a higher cost basis and unleashed a huge tax payment."
That's where tax-lot selection becomes critical. Your brokerage account contains shares you bought at different times and prices. By default, many brokerages use first-in, first-out (FIFO) accounting, which sells your oldest shares first, and those are often the ones with the lowest cost basis and highest taxable gains.[4]
Tax scenarios: What you'll actually owe
The gap between gross sale and net proceeds varies dramatically based on your income and the size of your gains. Here are four realistic scenarios to help you plan:
Scenario 1: The 0% bracket winner
- Household income: $80,000
- Stock sale: $75,000 with $30,000 in long-term gains
- Tax owed: $0 (gains stay within the 0% bracket)
- Net proceeds: $75,000
Scenario 2: The middle-class squeeze
- Household income: $150,000
- Stock sale: $200,000 with $120,000 in long-term gains
- Federal tax: $120,000 × 15% = $18,000
- Net proceeds: $182,000 (before state taxes)
Scenario 3: The high-earner hit
- Household income: $300,000
- Stock sale: $400,000 with $250,000 in long-term gains
- Federal tax: $250,000 × 15% = $37,500
- NIIT: $250,000 × 3.8% = $9,500
- State tax (California): $250,000 × 13.3% = $33,250[5]
- Total tax: $80,250
- Net proceeds: $319,750
Scenario 4: The ultra-high earner
- Household income: $800,000
- Stock sale: $500,000 with $300,000 in long-term gains
- Federal tax: $300,000 × 20% = $60,000
- NIIT: $300,000 × 3.8% = $11,400
- State tax (California): $300,000 × 13.3% = $39,900
- Total tax: $111,300
- Net proceeds: $388,700
As Olenbush warns, "The mistake is looking at the total sale price rather than the amount left after taxes." State taxes make the biggest difference here: Texas and Florida residents save the entire state tax portion, while California, New York, and Oregon residents face some of the highest combined rates in the country.
"A common and costly mistake is selling shares without reviewing holding periods and tax lots," adds Olivier Wagner, founder of tax firm 1040 Abroad. "This often leads to short-term gains being taxed at higher rates, which reduces the actual funds available for a down payment."
For example, if your taxable ordinary income is $90,000 (MFJ), the first $8,900 of long-term gains falls in the 0% bracket, but everything above that is taxed at 15%.
How to minimize your tax bill
The difference between smart tax planning and winging it can easily cost you $20,000 or more. Here's how to keep more of your money.
Master specific identification
This is your most powerful tool. Instead of letting your brokerage sell shares using FIFO, call them and specify which tax lots to sell. Choose the shares with the highest cost basis (the ones with the smallest gains) to minimize your tax bill.[4]
"Careful selection of shares can help preserve more capital and align the outcome with the intended goal," confirms Wagner.
Most brokerages let you change your default accounting method to "specific identification" online, but you'll need to designate which shares to sell before each transaction. It's a small hassle that can save thousands in taxes.
Consider tax-loss harvesting
If you have losing positions in your portfolio, selling them to offset your gains can reduce your tax bill significantly. You can use up to $3,000 in losses to offset ordinary income, and any excess losses carry forward to future years.[6]
Watch out for the wash sale rule
If you buy back the same or "substantially identical" securities within 30 days of selling at a loss, the IRS disallows the tax loss. The rule applies 30 days before and after the sale date.[7]
Alternatives to selling stock
Before you liquidate your portfolio, consider whether borrowing against it might make more sense. The right alternative can help you keep your investment upside while still accessing cash for your down payment.
Securities-based lines of credit (SBLOCs)
Think of an SBLOC as a low-rate loan secured by your investment portfolio. You keep owning your stocks while borrowing against their value, typically up to 50-70% of your portfolio's worth.[8]
"My experience in the field over the years tells me that an SBLOC will make sense when you reach the one-million-dollar mark," explains Hensel at North Coast Financial. "This ceiling typically opens interest rates that remain competitive."
Current SBLOC rates hover around 8.5%, according to Silver. That's higher than mortgage rates but still reasonable when you factor in the taxes you're avoiding and the potential upside you're keeping.
The margin call risk
"When the market suddenly drops, then forced sales are a harsh experience," Hensel warns. "In case the value of your collateral reduces, the lender will auction your stocks without consulting."
Low-down-payment conventional loans
Don't overlook the simple solution: Put less money down. Conventional loans require as little as 3% down, and FHA loans just 3.5%.[9]
If you're selling stock primarily to hit a 20% down payment target, compare the PMI costs to your potential capital gains tax bill. On a $500,000 home, 3% down is just $15,000 versus $100,000 for 20% down. Even with PMI, you might come out ahead by keeping your investments intact.
Family gift funds
For 2026, family members can gift you up to $19,000 each without tax consequences.[1] If parents, in-laws, and other relatives can contribute, this might cover a substantial portion of your down payment without touching your portfolio.
The key is honest risk assessment. SBLOCs work brilliantly in stable or rising markets but can force painful liquidations at the worst possible time during market downturns.
How stock sales affect your mortgage
Here's where timing becomes critical. Mortgage lenders have strict requirements around large deposits, and stock sales often trigger additional scrutiny that can delay your closing.
"The most significant error in my practice occurs when a person tries to sell his shares at the last moment," says Hensel. "When a six-figure deposit lands on your account during escrow, it will cause a manual audit to come in and grind everything."
The two-statement rule
Most lenders want to see your down payment funds "seasoned" in your bank account for at least 60 days, with two full monthly statements showing the funds sitting there.[10] Last-minute stock sales create a documentation nightmare.
"They will ask for brokerage statements that show the sale. They will want bank statements showing the funds deposited into your account," explains Olenbush. "If a large deposit shows up with no paperwork, the lender will pause the loan."
Required documentation
When your down payment comes from stock sales, expect to provide:[11]
- Complete brokerage statements showing the sale transaction
- Bank statements showing the proceeds deposited
- A letter of explanation for the large deposit
- Potentially additional tax returns or income verification
Direct-to-escrow alternative
Some scenarios allow stock sale proceeds to go directly into escrow rather than your personal account first. "I've also seen borrowers sell stocks and have the funds immediately moved into an escrow account, without ever having to sit in a checking account," notes realtor Justin Chau.
This can simplify the paper trail but requires coordination with your escrow company and typically works only for all-cash purchases.
The bottom line: sell your stock at least 60 days before you need the funds, and keep meticulous records of every step.
Equity compensation considerations
If your stock comes from employer equity compensation programs — RSUs, ESPPs, or ISOs — the tax rules get more complex.[12]
Restricted stock units (RSUs)
RSUs are the simplest case. You already paid ordinary income tax when they vested, so selling them generates only capital gains (or losses) based on price movement since vesting. The holding period for long-term capital gains treatment starts when the shares vested, not when they were granted.
Employee stock purchase plans (ESPPs)
ESPPs offer the biggest tax trap. To get preferential tax treatment, you must hold the shares for at least two years from the grant date and one year from the purchase date, called a "qualifying disposition."[13]
"Many of the customers invoke a disqualifying disposition by selling below the holding period of two years," warns Silver. "This error transforms the prospective capital gains into regular income at significantly greater tax rates."
In a disqualifying disposition, the discount you received when buying the stock gets taxed as ordinary income, with only the remaining gain qualifying for capital gains treatment.
Incentive stock options (ISOs)
ISOs create the most complex tax scenarios and usually require professional tax advice. Exercise them at the wrong time or sell too quickly, and you might trigger the Alternative Minimum Tax or convert favorable capital gains into ordinary income.[14]
For home purchase planning, the key is understanding your company's withholding practices. Most employers withhold around 22-25% for tax payments, but "the majority of companies do not pay out more than twenty-five percent," notes Silver. "The latter hardly pays the entire bill of high earners."
Factor the full tax bill into your net proceeds calculations, not just what was withheld at the time of sale.
When to sell: Timing considerations
The optimal timing balances tax efficiency, mortgage requirements, and market risk. Here's how to think through the decision:
The sweet spot: After contract, before closing
Once you have a signed purchase contract, you know exactly how much you need and when you need it. This eliminates the risk of selling stock early only to have your home purchase fall through, leaving you with an unnecessary tax bill.
But remember Hensel's guidance about seasoning requirements. If you're getting a mortgage, you'll need those funds in your account 60+ days before closing. That might mean selling stock before you've even found a house.
Tax-year timing
December vs. January sales can make a significant difference if you're near tax bracket thresholds. Delaying a sale to January pushes the tax bill out an entire year, giving you more time to plan.
Consider your other income for both years. If you're expecting a bonus or expecting to retire, time your stock sale for the lower-income year.
Market timing reality check
"Many people feel attached to their stock, especially if it helped build their career," observes Olenbush. "But I remind my clients that they are changing one asset into another. They are turning stock into a home."
You can't time the market perfectly, and trying to squeeze out extra gains while house shopping creates unnecessary stress. As Chau advises clients, think about "what the next 10 years of their lives would look like" rather than optimizing for the next few months of market performance.
Emergency timeline scenarios
If you need to sell quickly — say, you found your dream house but need to close in 30 days — consider whether alternatives like bridge financing or pledged-asset loans can buy you time for better tax planning.
"Clients may experience emotional challenges with regard to the process," notes Rachel Sinclair at US Gold and Coin. "I tell my clients they are transferring value, not eliminating it."
The emotional component is real, but don't let attachment to your investments derail a home purchase that aligns with your long-term goals.
Planning your home purchase budget
Understanding the true cost of selling stock for a down payment is just one piece of your home buying budget puzzle. You'll also want to factor in all the costs associated with buying a house beyond just the down payment.
If you're considering a high-value home purchase, learn how to afford a million-dollar home the right way with proper financial planning. For those looking at investment properties, understand minimum down payment requirements for second homes.
Before making any major financial decision, it's smart to run the numbers through a home affordability calculator to see what you can realistically afford based on your complete financial picture, including any stock sale proceeds after taxes.
Ready to get prequalified? Best Interest Financial can help to figure out how much home you can afford.
FAQ
Do you pay capital gains tax if you sell stock to buy a house?
Yes, selling stock triggers capital gains tax just like any other stock sale.[4]
Homes don't qualify for any special capital gains exemptions when funding the purchase. However, if you've held the stock for over a year, you'll qualify for lower long-term capital gains rates (0%, 15%, or 20% depending on your income) rather than ordinary income tax rates.
Should I sell all my stock at once or spread it across two tax years?
For large gains, spreading sales across tax years can keep you in lower tax brackets, but this strategy only works if your home purchase timeline allows it. Most buyers can't wait 6-12 months between selling stock and closing on a house.
The mortgage underwriting process also requires funds to be seasoned for 60+ days, so coordinate timing carefully with your lender.[10]
Can I use stock as collateral for a mortgage instead of selling?
Yes, through pledged-asset mortgages or securities-based lines of credit (SBLOCs), but these typically require portfolios of $1 million or more. You'll pay interest rates around 8-9% and face margin call risk if your portfolio value drops significantly. For most buyers with smaller portfolios, selling remains the more practical option.
What happens if I sell ESPP shares to buy a house?
ESPP shares have special tax rules.[13] If you sell within two years of the grant date or one year of purchase, you'll face a "disqualifying disposition" — meaning part of your profit gets taxed as ordinary income instead of capital gains. This can significantly increase your tax bill, so factor the higher tax cost into your down payment planning.
How much should I expect to net from a stock sale after taxes?
Plan to keep 70-85% of your gains after taxes, depending on your income and how long you've held the stock. For example, if you sell $200K of stock with $100K in long-term gains, expect to pay $15,000-25,000 in federal and state taxes. Always calculate your net proceeds before committing to a home purchase price.
