Which Company Stock Shares Should You Sell First? RSUs, ESPP, and ISO Lots
You decide you have too much company stock.
Maybe your employer stock has grown to $500,000.
Maybe it's $1 million.
Maybe the concentration doesn't bother you, but you want cash for a house, taxes or another investment.
So you decide:
I'm going to sell $100,000 of company stock.
That sounds like the decision.
It isn't.
If you accumulated company stock through RSUs, an employee stock purchase plan, Incentive Stock Options and purchases made at different prices over several years, you may own dozens of different tax lots.
And the next question becomes:
Which $100,000 should you sell?
That decision can materially change the tax consequences.
Some shares may have losses.
Some may have short-term gains.
Some may have long-term gains.
Some ESPP shares may have met special holding-period requirements while others have not.
Some ISO shares may have a regular tax basis that is very different from their AMT basis.
That's why "sell company stock" is not always a complete recommendation.
Which shares you sell matters.
What Is a Tax Lot?
A tax lot is simply a group of shares acquired at the same time and generally at the same price.
Imagine you work for a cybersecurity company and receive company equity throughout your career.
In March, 200 RSUs vest when the stock is $100.
In June, another 200 vest when the stock is $125.
In September, you purchase shares through the ESPP at $90.
The following January, you exercise ISOs at a $40 exercise price while the stock trades at $140.
You don't own one generic pile of company stock.
You own several different lots with different:
acquisition dates, cost bases, holding periods and tax consequences.
Years later, your brokerage account might simply tell you:
Company Stock: $800,000
But underneath that number could be 15 or 20 separate decisions.
That's where specific-lot planning becomes valuable.
What Is Specific Lot Identification?
When you sell shares, you can generally identify the particular shares you want sold.
That is called specific share or specific lot identification.
For example, instead of simply telling your broker:
Sell 500 shares.
you might intentionally select the 500 shares that vested on a particular date.
That matters because your gain or loss is calculated using the basis of the shares actually sold.
If one lot has a $50 basis and another has a $140 basis, selling 500 shares from each lot at the same market price can create dramatically different tax results.
If shares are not adequately identified, FIFO — first in, first out — can generally become the default.
FIFO means the oldest shares are treated as sold first.
Sometimes that's exactly what you want.
Sometimes it isn't.
We don't think "oldest shares first" should automatically determine a six-figure tax decision.
Why This Gets Complicated With Equity Compensation
For someone who simply bought the same stock several times in a brokerage account, lot selection is mostly about:
basis + holding period + gain or loss.
Equity compensation adds additional layers.
RSUs have their own tax history.
ESPP shares have special holding-period rules.
ISOs can have both regular-tax and AMT consequences.
And you may continue receiving more company stock while you are trying to diversify the shares you already own.
That is common with the cybersecurity professionals we work with.
The objective isn't necessarily to get completely out of employer stock.
It is often to develop a repeatable transition strategy where new equity compensation continues arriving while older positions are intentionally sold.
Start With RSUs
RSUs are often one of the simpler places to begin.
When RSUs vest, the value of the shares is generally treated as compensation income.
Suppose 100 RSUs vest when the stock trades at $150.
You generally have $15,000 of compensation associated with that vesting event.
That $150-per-share value becomes important when determining the tax basis of the shares you now own.
From that point forward, movement in the stock price creates a capital gain or loss.
If the stock later trades at $180, you have an embedded gain.
If it falls to $125, you have an embedded loss.
This is why we often ask a simple question when RSUs vest:
If your employer gave you the same amount in cash today instead of shares, would you use all of that cash to buy company stock?
If the answer is no, automatically continuing to hold every RSU deserves another look.
We discuss that decision more specifically in What Should Cybersecurity Professionals Do When Their RSUs Vest?.
Why Recently Vested RSUs Can Sometimes Be Attractive Shares to Sell
Imagine your employer stock is $150.
RSUs vested last week at $149.
You also own shares from three years ago with a $40 basis.
You need $50,000 of cash.
Both lots represent ownership of the exact same company today.
But selling the newly vested shares may create very little capital gain.
Selling the older shares may create a substantial taxable gain.
This is why someone can systematically sell newly vested RSUs while continuing to hold older shares.
It can allow the employee to stop adding to an already concentrated position without immediately realizing all of the gains embedded in older stock.
That doesn't mean "always sell RSUs at vest" is the correct answer.
It means the tax consequences of each lot should be visible before making the sale.
Loss Lots Are Often Worth Looking at First
Now imagine your employer stock has fallen.
You own several lots above the current stock price.
Those shares have unrealized losses.
If reducing your company-stock exposure was already part of the plan, those lots may be particularly useful.
Selling a loss position can reduce concentration while creating a capital loss that may potentially offset capital gains elsewhere, subject to applicable tax rules.
That's a very different outcome from selling an older company-stock lot with a significant gain.
Again, the point isn't:
Always sell losses first.
The point is:
Know they exist before you sell something else.
If someone owns 6,000 shares spread across 20 lots, we don't want to discover after the trade that 800 shares were sitting at a loss while the investor accidentally realized a large gain from another lot.
Then Look at Long-Term Versus Short-Term Gains
Holding period can matter too.
Suppose two lots each have a $20,000 embedded gain.
One has been held for more than a year.
The other has been held for six months.
Selling them may not produce the same federal tax treatment.
That could make the long-term lot more attractive to sell.
But once again, tax treatment is only one part of the decision.
If a particular stock represents too much of your wealth, waiting several more months solely to cross a tax holding period can expose you to meaningful investment risk.
We come back to the same principle repeatedly:
A tax-efficient decision is not automatically the best financial decision.
Sometimes accepting a higher tax bill is reasonable because the financial risk of continuing to hold the stock is larger.
ESPP Shares Add Another Holding-Period Decision
Employee Stock Purchase Plan shares can become more complicated because the tax result can depend on how long the shares are held after purchase and after the offering or grant date.
That means two ESPP lots purchased at different times can have different tax consequences even though they are shares of the exact same company.
An employee might have:
older ESPP shares that have met the applicable holding requirements,
newer ESPP shares that have not,
shares with significant gains,
and shares that are currently at a loss.
That is why an ESPP liquidation strategy should generally begin with a complete lot inventory rather than simply clicking "sell."
For employees receiving ESPP shares continuously, this can become a conveyor belt.
New shares arrive.
Older shares cross holding periods.
Other lots develop gains or losses.
The strategy needs to keep moving with them.
We discuss the broader ESPP decision for one of the cybersecurity employers we follow in CrowdStrike ESPP: How Employees Should Think About Their Employee Stock Purchase Plan.
ISO Shares Are Different Again
Incentive Stock Options create another layer because there can effectively be two tax histories attached to the same shares.
There is the regular tax basis.
And there can be an AMT basis.
Suppose you exercise an ISO with a $20 exercise price when the stock is worth $100.
For regular federal tax purposes, the $20 exercise price is important to determining basis.
But if you exercised and held the shares and the $80 bargain element became an AMT adjustment, your AMT basis may be substantially higher.
Later, when you sell the shares, that difference becomes important.
This is also one of the ways an existing AMT credit can potentially be recovered.
We went much deeper into that in How Do You Get Your AMT Credit Back After Exercising ISOs?.
This means that if someone owns multiple exercised ISO lots, we don't just want to know:
Which lot has the smallest capital gain?
We may also want to know:
What was the AMT adjustment associated with this lot, and what happens to the existing AMT credit if we sell it?
That's considerably more nuanced.
A Simple Example: Which Shares Would You Sell?
Imagine a cybersecurity executive owns four groups of the same company stock.
The stock currently trades at $150.
One group consists of recently vested RSUs with a basis of $145.
Another is older RSUs with a basis of $60.
Another consists of ESPP shares purchased at $100 that have met the relevant holding periods.
And the final group consists of exercised ISO shares with a regular basis of $30 and a much higher AMT basis.
The employee wants $100,000 for a home purchase.
We could simply sell approximately $100,000 of stock.
But which stock?
Selling recently vested RSUs might create very little capital gain.
Selling the older RSUs could create a large long-term capital gain.
Selling ESPP shares could involve its own compensation and capital-gain calculation.
Selling ISO shares could affect both regular capital gains and AMT-credit recovery.
The correct answer may also be:
a combination of several lots.
Maybe we realize some gains.
Maybe we pair them with losses elsewhere.
Maybe we intentionally sell some ISO shares because the AMT consequences are attractive.
Maybe we leave another lot alone because it is about to cross an important holding period.
This is what we mean when we talk about a tax-efficient transition strategy.
It's not finding one magical tax lot.
It's coordinating several moving pieces.
Don't Let the Lowest-Tax Lot Automatically Win
It is tempting to rank every lot based solely on the immediate tax bill.
We don't think that's enough.
Suppose the most tax-efficient choice is to keep holding a highly appreciated lot for another year.
But company stock already represents 60% of your investable assets.
Your salary comes from the same company.
Your next bonus depends on the same company.
You have another RSU grant vesting next quarter.
And you have additional options tied to the stock.
At that point, investment risk may matter more than avoiding a capital gain.
The tax answer should not live in a vacuum.
For employees with significant equity compensation, we want to consider their career concentration alongside their investment concentration.
That's especially important in industries like cybersecurity where equity compensation can become a significant portion of total compensation.
Your Future Grants Matter Too
Another reason we don't simply say "get company stock down to 10%" is that the portfolio isn't static.
Suppose you sell $200,000 of company stock this year.
But you are scheduled to receive another $250,000 of RSUs over the next 12 months.
Your exposure may rebuild almost as quickly as you reduce it.
The strategy should account for what is coming.
That may mean becoming more aggressive about selling existing shares.
Or it may mean automatically selling some new shares at vest while methodically working through older positions.
The goal is not necessarily to reach one perfect percentage on December 31.
It's to create a system that moves concentration in the right direction over time.
Sometimes You Should Sell the Shares You Just Received
This can feel counterintuitive.
People often think:
I should sell my oldest company stock first.
But consider what happens when new RSUs vest.
You just recognized compensation based on their value at vest.
If you immediately sell those shares around that same price, there may be relatively little additional capital gain or loss.
If you instead keep the new shares and sell older, highly appreciated shares, you may create a much larger tax bill while maintaining roughly the same total company-stock exposure.
This is one reason systematic selling of newly vested equity can be useful for someone who already has more company stock than they want.
You're preventing the concentration from getting worse.
Then older appreciated positions can be handled separately and more intentionally.
Sometimes You Should Sell the Old Shares
There are situations where older shares make more sense.
Perhaps they have already reached long-term capital-gain treatment.
Perhaps an ESPP holding period has been satisfied.
Perhaps qualified ISO shares have a favorable AMT consequence.
Perhaps the investor wants to reduce a particularly large embedded risk rather than merely prevent new concentration.
Or perhaps the older shares have much less gain than expected because of a previous stock decline.
The point is not that new shares are better than old shares.
The point is that acquisition date alone shouldn't make the decision.
Sometimes You Should Sell Several Different Lots
Real planning is rarely as clean as:
Sell Lot A.
Suppose you need $150,000.
One strategy could involve selling $40,000 of recently vested RSUs with almost no gain, $30,000 of shares currently at a loss, $50,000 of a long-term gain lot and $30,000 of qualified ISO shares.
Now the sale can potentially accomplish several things simultaneously:
raise the required cash,
reduce concentration,
use available losses,
manage realized gains,
and potentially coordinate with AMT-credit recovery.
That's much closer to how we would think about the problem.
The Broker's Default Is Not Your Financial Plan
Brokerage platforms have to use some method for selecting shares.
That does not mean the default setting is the strategy you should use.
Before placing a significant company-stock trade, we would want to know what disposal method is selected and confirm the specific lots being sold.
The IRS generally permits specific-share identification when the particular shares are properly identified with the broker.
If specific shares are not adequately identified, FIFO can generally apply.
That's a tiny operational detail that can have a large financial consequence.
For an employee selling $5,000 of stock, it may not materially change their life.
For someone transitioning hundreds of thousands or millions of dollars of company equity, it deserves considerably more attention.
Basis Reporting Can Also Create Confusion
Equity compensation can create another headache at tax time:
the number reported by the broker may not always tell the entire tax story.
Stock compensation can involve compensation income that was already included on a W-2, holding-period rules and basis adjustments that need to be reflected correctly on the tax return.
ISO shares introduce the additional need to maintain both regular and AMT records.
This is why we want the financial plan, brokerage execution and CPA work coordinated.
Otherwise, one person may know what was sold.
Another knows what appeared on the W-2.
Another sees the Form 1099-B.
And nobody is looking at the full equity-compensation history.
How We Would Think About Which Shares to Sell
We don't think there is a universal hierarchy that says:
sell RSUs first, then ESPP, then ISOs.
Instead, we would look at the entire position.
First, what is the purpose of the sale?
Are we generating cash?
Reducing concentration?
Funding an ISO exercise?
Paying an AMT bill?
Buying a house?
Building a diversified brokerage account?
Then we look at the tax lots available to accomplish it.
We would compare the embedded gain or loss, short- versus long-term treatment, ESPP holding periods, ISO holding periods, AMT basis, outstanding AMT credits and how much company stock will remain afterward.
Then we ask the most important question:
Does this leave the client in a better financial position?
Taxes matter.
But they're not the finish line.
The Multi-Year Strategy Matters More Than One Sale
For someone with significant company equity, the best outcome may not come from finding the perfect 500 shares to sell today.
It may come from deciding:
What do we want this position to look like three years from now?
Then working backward.
Perhaps Year 1 is primarily about selling newly vested RSUs and loss lots.
Year 2 includes selling older ESPP shares and exercising part of an ISO grant.
Year 3 involves qualified ISO sales, AMT-credit recovery and continued diversification.
Meanwhile, new RSUs and ESPP purchases continue arriving.
That's why equity-compensation planning often requires ongoing execution rather than a one-time recommendation.
The plan changes as the stock price, income, grants, taxes and career change.
Questions to Ask Before Selling Company Stock
Before placing a large company-stock sale, make sure you can answer a few basic questions: What lots do I actually own? What is the cost basis of each? Which have gains and which have losses? Which gains are short-term versus long-term? Are any shares from an ESPP or ISO? Have their applicable holding periods been satisfied? Do any ISO shares have a different AMT basis? Am I carrying an AMT credit? What specific shares will my broker sell if I place the order today? And after the trade, how much of my wealth will still depend on my employer?
If those answers aren't clear, it may be worth understanding them before hitting Sell.
The Bottom Line
If you own company stock through RSUs, an ESPP or Incentive Stock Options, deciding how much stock to sell is only half of the decision.
The other half is:
Which shares should you sell?
Different lots can produce very different tax outcomes.
A recently vested RSU lot may have almost no embedded gain.
An older lot may create a substantial long-term capital gain.
An ESPP lot may have special holding-period considerations.
An ISO lot may affect both your regular tax and your AMT-credit strategy.
And sometimes the best solution is a combination.
The goal isn't to find the shares that produce the smallest tax bill today.
It's to build a repeatable strategy that coordinates:
company-stock concentration,
taxes,
cash needs,
future equity grants,
AMT,
and your long-term investment plan.
Because if your goal is to turn company equity into financial independence, how you exit the position matters almost as much as how you built it.
Related Resources
Incentive Stock Options and AMT: What Employees Should Know Before Exercising
What Should Cybersecurity Professionals Do When Their RSUs Vest?
This material is for educational purposes only and is not intended as individualized investment, tax, or legal advice. Equity compensation taxation can be complex and depends on individual facts and circumstances. Consider coordinating financial planning decisions with a qualified tax professional.