Selling Part of a Shareholding: FIFO and the 4-Week Rule
If you bought the same shares at different prices and sell only some of them, Irish CGT works out which ones you sold. The basic rule is first in, first out (FIFO): the earliest purchases are treated as sold first. The exception is that shares sold within 4 weeks of buying more are matched to those recent purchases first, and a sale and quick rebuy can restrict your loss.
Why does it matter which shares you sold?
Shares of the same company and class are identical, so you cannot point to a particular share certificate. But the cost differs: if you bought at €10 and later at €14, the gain on a sale depends on which cost you set against the proceeds. The law gives a rule so that everyone reaches the same answer.
The basic rule: FIFO
Shares of the same class are treated as sold from the earliest purchase first, and the cost of the sold shares is taken from those earliest purchases. Only shares of the same company and class count together; different companies, or different classes of one company, are separate holdings.
Worked example: FIFO
Conor buys 100 shares in a company at €10 in January 2026, 100 more at €14 in June 2026 and 100 more at €18 in early September 2026. On 20 November 2026 he sells 150 shares at €20.
- Proceeds: 150 x €20 = €3,000.
- FIFO cost: all 100 from January (100 x €10 = €1,000), then 50 from June (50 x €14 = €700). Total €1,700.
- Gain: €3,000 - €1,700 = €1,300.
- Less the €1,270 annual exemption: €30 taxable.
- CGT at 31% (sale after 7 October 2026): €30 x 31% = €9.30.
He still holds 50 shares from June at €14 and 100 from September at €18. Keep a record of what remains.
The 4-week rule
If you sell shares within 4 weeks of buying shares of the same class, the sale is matched first to the shares you bought in the 4 weeks before the sale. Any excess is then matched using FIFO.
Worked example: the 4-week rule
Dara holds 100 shares bought in January 2026 at €10. On 5 November 2026 he buys 50 more at €16. On 20 November 2026 he sells 100 at €20.
- Proceeds: 100 x €20 = €2,000.
- The 20 November sale is within 4 weeks of the 5 November purchase, so 50 sold shares are matched to those: 50 x €16 = €800.
- The other 50 are matched by FIFO to the January shares: 50 x €10 = €500.
- Total cost €1,300. Gain: €2,000 - €1,300 = €700, inside the €1,270 exemption, so no CGT.
Under plain FIFO the cost would have been €1,000 (100 x €10) and the gain €1,000. The 4-week rule changed the sum because it pulled in the dearer recent purchase.
Selling at a loss and buying back (bed and breakfasting)
Some investors used to sell at a loss to claim the loss and buy the same shares back straight away. The law stops this: if you sell shares and buy them back within 4 weeks, any loss on the sale can only be set against a gain on a later disposal of the repurchased shares. It cannot reduce your other gains.
Example: Ailbhe sells 200 shares for €1,000. They cost her €1,600, a loss of €600. Two weeks later she buys 200 of the same shares back. The €600 loss is not available against her other gains this year. It is held back until she sells the repurchased shares at a gain. If she waits more than 4 weeks to buy back, the loss counts in the ordinary way.
For how losses work generally, see tax on shares in Ireland.
Bonus shares, rights issues and share splits
- Bonus shares: treated as acquired when the original shares were, at no extra cost, so they dilute your average cost per share.
- Rights issue: the money you pay for new shares is added to your cost as enhancement expenditure.
- Reinvested dividends: each reinvestment is a new purchase at the price paid, with its own date, so track each.
Keep a simple register: date, number, price and costs of every purchase and sale. Revenue can ask for it for six years or more after the sale. If you hold through a company or a fund, different rules apply: see ETFs and exit tax.
Key points
- Shares of the same class: sold from the earliest purchase first (FIFO).
- Shares sold within 4 weeks of a purchase: matched to purchases in the 4 weeks before the sale, then FIFO for any excess.
- Sell at a loss and rebuy within 4 weeks: the loss is ring-fenced against a gain on the repurchased shares.
- Report disposals on the CGT return even if no tax is due. See CGT payment dates.
The Tax Planning programme works through share matching, loss relief and the CGT return with more examples, so you can prepare it yourself.
Questions people ask
- What is the FIFO rule for shares in Ireland?
- First in, first out. When you sell shares of the same class, they are treated as the earliest ones you bought, and the cost of those earliest purchases is used to work out the gain.
- What is the 4-week rule for selling shares?
- If you sell shares within 4 weeks of buying more of the same class, the sale is matched first to the shares bought in the 4 weeks before the sale. Any excess is matched using FIFO.
- Can I sell shares at a loss and buy them back?
- You can, but if you buy back within 4 weeks, the loss can only be set against a gain on a later disposal of those repurchased shares. It does not reduce your other gains.
- How do bonus shares affect my cost?
- Bonus shares are treated as acquired at the same time as the original shares. They come with no extra cost, so your average cost per share goes down and the gain on a later sale goes up.