Ever heard investors chatter about the ‘30 day rule’ and felt like you were trying to solve a Sudoku puzzle in another language? You’re definitely not alone. This rule, which often goes by the quirky nickname ‘bed and breakfasting,’ is a really important part of the UK’s Capital Gains Tax (CGT) system, and getting your head around it is a must for any savvy investor.
Its main job is to stop a crafty little tax move. Specifically, it stops investors from selling shares to create a tax loss, only to snap them up again a few days later while keeping their stake in the company. You could think of it as HMRC’s way of saying, ‘Nice try, but we’re one step ahead of you!’
So, Who Needs to Care About This Rule?
The 30 day rule for capital gains catches a surprisingly wide range of people in its net. You’ll want to pay close attention if you are:
- An active share trader who’s regularly buying and selling.
- An investor trying to lock in losses to set against other gains before the tax year ends.
- Someone using automated investment platforms that might buy and sell for you, without you even noticing the tax hit.
- A spouse or civil partner of an investor, because the rule can also apply if your other half buys back the same shares within that 30-day window. Sneaky, right?
In short, if you invest in shares, funds, or similar assets outside of a tax-free wrapper like an ISA or SIPP, this rule needs to be on your radar. Getting it wrong can quickly turn what you thought was a clever tax saving into an unexpected and unwelcome tax bill.
The core idea is simple: if you sell shares at a loss and then buy back the exact same shares within 30 days, you can't use that loss to shrink your other capital gains for tax purposes. The loss is basically cancelled out by the repurchase.
Understanding how this works is the first step towards smarter tax planning. It directly impacts when you should trade and helps you make much better decisions about your investment portfolio. For the full picture, it’s also useful to know what the capital gain tax rate is and how it’s calculated. In the next few sections, we'll break down exactly how this rule works with some real-world examples.
How the Bed and Breakfasting Rule Works
Alright, let's pull back the curtain on how this quirky rule actually operates. The 30-day rule for capital gains, or the bed and breakfasting rule, is really all about HMRC’s specific matching system. It’s designed to stop investors from creating a pretend loss for tax purposes, only to jump back into the same investment almost immediately.
Think of it like this: you’ve got a big bag of identical sweets you've collected over time. When you sell one, HMRC doesn't let you just pick any old sweet. Instead, it makes you match the sale against the very last one you bought, not the one that's been sitting at the bottom of the bag for ages. It’s a subtle but super important detail that can completely change your tax sums.
HMRC’s Share Matching Rules
To work out your gain or loss, HMRC has a strict pecking order for matching sales with purchases. You can't just pick and choose; you have to follow their sequence exactly.
- Same Day Rule: First, any shares you sell are matched against shares of the same company that you buy on the same day. This is top of the list.
- 30-Day Rule: If there are no same-day purchases, the sale is then matched against any shares of the same type you buy within the next 30 calendar days. This is the heart of the bed and breakfasting rule, and it’s the one that most often catches people out.
This order is the key to understanding how your trades affect your tax bill. The infographic below gives a simple visual breakdown of where the 30-day rule fits into the big picture.
As you can see, the rule sits directly under the UK Capital Gains Tax umbrella, designed specifically to stop investors from magically creating losses to lower their tax bills.
By forcing you to use the purchase price of the new shares (bought within 30 days) instead of the price you paid ages ago, the rule effectively makes the loss you were trying to create vanish into thin air. Poof!
The table below sums up this matching process.
HMRC's Share Matching Rules At a Glance
| Matching Order | Shares Matched Against | Why It Matters |
|---|---|---|
| 1. Same Day | Purchases of the same shares made on the same day as the sale. | This is top priority. Any same-day activity is dealt with first. |
| 2. Next 30 Days | Purchases of the same shares made within the 30 days following the sale. | This is the "bed and breakfasting" rule. It stops you selling for a loss and buying back in straight away just for the tax break. |
| 3. The Big Pot | Your existing pool of all other shares of that company, with costs averaged out. | This is the final step. If no shares were bought on the same day or in the next 30, the sale is matched against your long-term holding. |
It's only when neither the same-day nor the 30-day rules apply that you can match the sale against your existing pool of shares (what the tax pros call the ‘Section 104 Holding’). This is where you average out the cost of all the shares you've held over time.
Getting your head around this sequence is vital. A simple timing mistake, like buying back shares on day 29 instead of day 31, can turn a brilliant tax-saving plan completely upside down. It can feel like a chore, but that’s where getting a bit of expert help makes all the difference. At Artema, we can help you keep track of these timings so you can invest with confidence.
Seeing the 30-Day Rule in Action
Theory is one thing, but seeing how the numbers actually crunch is where it all clicks into place. Let's walk through a real-life example to show just how much the 30-day rule for capital gains can change your tax outcome, often when you least expect it.

Meet Sarah, a savvy investor. A few years ago, she bought 1,000 shares in a company called Innovate PLC for £5,000 (£5 per share). The share price has recently dipped, and Sarah spots what she thinks is a smart opportunity.
She decides to sell all her shares for £3,000 (£3 per share) to lock in a loss. Her plan is to use this loss to cancel out a gain she made on another investment, which would reduce her overall Capital Gains Tax bill. Clever, right?
Just a week later, feeling confident the shares will bounce back, she repurchases 1,000 shares in Innovate PLC for £3,500 (£3.50 per share).
Sarah’s Plan (Before the 30-Day Rule Crashes the Party)
In Sarah’s mind, the maths is simple. She sold shares she originally bought for £5,000 and got £3,000 back.
- Original Purchase Cost: £5,000
- Sale Proceeds: £3,000
- Calculated Loss: £2,000
She thinks she’s successfully ‘banked’ a £2,000 capital loss. She can now use this to wipe out a £2,000 capital gain elsewhere, potentially saving herself a nice chunk of tax. It seems like a perfectly logical, textbook move.
But wait. Remember that repurchase she made just one week later? That’s where HMRC’s rules jump in and throw a spanner in the works.
The Reality Check: How HMRC Sees It
Because Sarah bought the same shares back within 30 days of selling them, the 30-day rule is triggered. HMRC essentially says, "Hold on, you can't match that sale to the shares you bought years ago. You have to match it to the new shares you just bought."
This completely changes the calculation. The starting cost for her sale is no longer the original £5,000. Instead, it's the cost of the new shares she bought within that 30-day window.
The rule forces the cost of the new shares to be used for calculating the gain or loss on the original sale. This basically links the sale and repurchase into a single event for tax purposes.
Here's how HMRC's calculation looks:
- Sale Proceeds: £3,000
- Cost of New Shares (used as the cost base): £3,500
- Actual Capital Loss: £500
Suddenly, Sarah's strategic £2,000 loss has shrunk to just £500. The other £1,500 of her intended loss has vanished from a tax perspective. This simple timing mistake has a massive impact on her tax planning.
What's more, the cost for her new holding of 1,000 shares is now adjusted. It becomes the original £5,000 cost, not the £3,500 she just paid. This detail is crucial for when she eventually sells these shares down the line.
Navigating these rules can feel like a massive headache, especially when you're busy managing your investments. If this example feels a bit too close to home, don't panic. At Artema, we help investors make sense of these regulations every day. Reach out to us for a friendly chat about how we can help keep your tax planning on track.
Avoiding Common Pitfalls and Tax Traps
It’s surprisingly easy to fall foul of the 30-day rule for capital gains, even with the best intentions. Think of it like a game of tax whack-a-mole; just when you think you’ve got it covered, another potential trap pops up. Let’s look at some of the most common slip-ups so you can sidestep them like a pro.

One of the sneakiest traps is thinking you can outsmart the rule using different accounts. A classic blunder is selling shares from your general investment account to create a loss, then immediately buying the same shares inside your tax-free ISA. It feels like a genius move, but HMRC sees it as one continuous action by you, the investor.
The rule doesn’t care about which pot the money is in; it cares about the timing. Selling from one account and buying in another within 30 days will still trigger the rule, often making the very tax loss you were hoping for disappear.
This same logic applies to pension accounts (SIPPs) too. The key takeaway is that the 30-day window follows you, not the account.
The Automated Investment Trap
In our set-and-forget world, automated investing is a fantastic tool. However, regular monthly investments, sometimes called ‘drip-feeding’, can accidentally trigger the 30-day rule without you even realising.
Imagine this:
- You sell some of your shares on the 5th of the month to take a profit.
- Your automated investment plan is set to buy more of the exact same shares on the 25th of the month.
- Oops! You’ve just made a purchase within the 30-day window, which will mess up the capital gain calculation on your sale.
This is a really common slip-up for hands-off investors. It pays to be aware of your automated purchase dates whenever you’re planning to sell. Keeping track of these details is crucial, not just for shares but for other assets too. For example, property investors face their own unique timelines and rules, which is why understanding topics like buy-to-let taxes is equally important.
Staying on the right side of HMRC just requires a bit of planning and awareness. By knowing where the banana skins are, you can invest more smartly and avoid any nasty surprises when it’s time to do your tax return.
Getting to Grips with the 60-Day Rule for Property
Just when you think you’ve got your head around the 30-day rule for shares, another deadline pops up to keep you on your toes. Welcome to the world of property tax, where the timeline plays by a completely different set of rules. If you sell a UK residential property, you absolutely need to know about the 60-day rule. Confusing it with its 30-day cousin for shares is a common—and potentially very expensive—mistake.
Here’s the simplest way to think about it: the 30-day rule is a matching game, linking share sales with recent purchases. The 60-day rule, on the other hand, is just a hard deadline. It isn't about matching anything; it’s a strict window for you to report and pay your Capital Gains Tax (CGT) after selling a home in the UK.
Who Needs to Worry About This Deadline?
This rule is mainly for UK residents selling a residential property that isn't their main home. This is going to catch people like:
- Buy-to-let landlords selling a rental property.
- Anyone selling a second home or holiday home.
- Those who've inherited a property and decided to sell it.
Basically, if you've made a taxable gain on a property sale that isn't fully shielded by tax relief, this 60-day countdown is for you. Miss it, and you can expect automatic penalties from HMRC, so it’s one to watch like a hawk.
The government brought in this tight reporting window to get its tax money much faster. Initially, a 30-day deadline was introduced from 6 April 2020, but it quickly became clear this was a really tough ask for most people. Thankfully, the government extended the deadline to 60 days for property sales completed on or after 27 October 2021. This was a welcome bit of breathing room! You can find more about the background of these property tax changes on GOV.UK.
Unlike the share matching rule, the 60-day property rule is a simple "report and pay" job. Once the sale completes, the clock starts ticking, and you have exactly 60 days to work out your gain, report it to HMRC, and pay what you owe.
This separate process for property can feel like a whole new piece of homework, especially when you’re already juggling the stress of a sale. Getting the numbers right is vital, which is why we’ve put together a specific guide on calculating capital gains on the disposal of a property to help you navigate it all smoothly. Getting expert advice can make all the difference in meeting the deadline without any last-minute panic.
When to Ask for Help from a Tax Pro
Feeling a bit lost in the maze of tax rules? You wouldn't be the first. The world of capital gains, especially with fiddly regulations like the 30 day rule, can feel like you're trying to solve a Rubik's Cube in the dark. Getting it wrong can be a costly slip-up, and nobody wants a surprise letter from HMRC landing on their doormat.
https://www.youtube.com/embed/CzziilPdEiw
This is exactly when getting some professional help becomes a brilliant idea. Think of a tax advisor as your financial co-pilot; they're there to help you navigate the tricky bits so you can focus on where you want your investments to go.
Is It Time to Call in the Pros?
It might be time to have a chat with an expert if any of this sounds familiar:
- Your portfolio is pretty active, with lots of buying and selling.
- You’re planning to sell some significant assets and want to do it in the smartest, most tax-friendly way.
- You've accidentally tripped over the 30 day rule capital gains and need help figuring out the damage.
- You simply want the peace of mind that comes from knowing your tax affairs are spot on.
A good advisor can look at your personal situation and help you plan your sales without walking into common traps.
Think of professional tax advice not as a cost, but as an investment. The potential tax savings and avoidance of penalties often far outweigh the fee, delivering a solid return on your financial peace of mind.
Modern accounting tools can also be a game-changer. Using software like Xero helps you keep perfect records of all your trades, which makes the number-crunching much less painful when tax season rolls around.
If you're ready to take the guesswork out of your capital gains tax, we’re here to help. At Artema, we combine expert advice with the best tools to keep your investments running smoothly. Get in touch with us today for a friendly, no-obligation chat about what you need.
Frequently Asked Questions
Still have a few questions buzzing around? You’re not the only one. Here are some quick answers to the most common queries we get about the 30-day rule for capital gains.
Does the 30-Day Rule Apply to Gains Too?
Yes, it absolutely does. While people often focus on this rule for managing losses, it's a two-way street.
If you sell shares for a profit and buy the exact same shares back within 30 days, the rule is triggered. In this case, the cost of your new shares is used to calculate the gain on your original sale, which can definitely change your final tax bill.
What if I Buy Back Shares in My ISA?
This is a classic tax trap that catches many investors out. Selling shares from a general investment account and then buying them back inside a tax-free wrapper, like an ISA or SIPP, won’t let you sidestep the rule.
HMRC sees the repurchase as being made by you, regardless of which account it’s in. The matching rules will still be triggered, and your clever tax plan could easily come undone.
It's a common misunderstanding, but the rule follows the investor, not the account. If you sell and then you (or your spouse) buy back the same shares within 30 days, anywhere, the rule kicks in.
How Is the 30-Day Period Calculated?
It's simpler than it sounds. The countdown starts on the day you sell the shares. You then just count 30 calendar days forward from there.
Any purchase of the same type of shares made by you, or even your spouse or civil partner, within that timeframe can trigger the rule. It really pays to keep a close eye on the calendar!
Feeling more clued-up about the 30-day rule but want to ensure all your financial ducks are in a row? The team at Artema is here to provide clear, practical advice to help you manage your investments and tax obligations effectively. Find out how we can help you today at artema.co.uk.