TREADSTONE LAW · ONTARIO · DIGITAL LEGAL SERVICES · EST. MMXXI ·TSL
№ 130 Case Study — Tax

Cleaning Up a Pharmacy Corporation Before It Was Sold

A North Bay couple built up cash, investments and a rental property inside their pharmacy's corporation. Selling the business meant untangling all three before closing — and not everything could be untangled in time.

Tax5 min readNorth Bay, OntarioPre-sale planning
All Tax case studies
ClientHodan and Rania, selling their pharmacy corporation in North Bay
The issuePassive investments inside the company put their tax exemption at risk
ServicePre-sale corporate reorganization and purification planning
ResolutionPartial purification achieved; a price adjustment settled the rest

The situation

Hodan had run an independent dispensary pharmacy in North Bay for over a decade, incorporated jointly with her spouse Rania, who managed the business side while Hodan filled prescriptions. Along the way, Hodan had also picked up steady gig work — locum shifts covering other pharmacies' short-staffed weekends and the occasional virtual consultation contract. Rather than set up a second entity for that income, she simply billed it through the same corporation.

Over the years, the dispensary turned a healthy profit and the gig income added a further stream on top. Instead of drawing all of it out as salary or dividends and paying personal tax immediately, Hodan and Rania left a good portion invested inside the company: a ladder of guaranteed investment certificates, a modest portfolio of listed securities, and a small rental duplex the corporation had bought a few years earlier, partly as a place to hold surplus cash and partly to income-split rental profits between them.

By early 2026 they had a serious buyer. Samir, a construction project manager looking to move out of site work and into a business he could run with staff rather than a crew, made an offer to buy their pharmacy corporation outright — shares, not just the dispensary's assets. Both sides expected the deal to close within a few months.

What due diligence found

Under the Income Tax Act, an individual can shelter a substantial amount of capital gain from tax when selling shares of a corporation, but only if those shares meet the test for a qualified small business corporation. Broadly, that test asks two things: at the moment of sale, at least 90% of the fair market value of the company's assets must be used in an active business carried on in Canada, and for the 24 months before that, at least 50% of the company's assets must have met the same standard. A company that has been quietly accumulating passive investments alongside its operating business can fail both tests without anyone realizing it.

That is exactly what Samir's accountant flagged during due diligence. Breaking the corporation's balance sheet down by fair market value, roughly $130,000 sat in guaranteed investment certificates, another $70,000 in marketable securities, and the rental duplex carried about $115,000 of equity above its mortgage — call it $315,000 of assets that had nothing to do with dispensing prescriptions. Against the company's total value, that was more than enough to push the active-business share below the 90% threshold.

The problem cut both ways. For Hodan and Rania, it meant a meaningful risk of losing part of their lifetime capital gains exemption on shares that no longer clearly qualified. For Samir, it meant he would be paying pharmacy-business pricing for a GIC ladder, a stock portfolio and a rental property he had no interest in owning or managing alongside his new business. Neither side wanted the deal structured that way, but nobody had raised it until due diligence was well underway — and closing was only a few months out.

What we did

  1. Reviewed the letter of intent against the closing timeline. Purification only works if there is enough runway to do it properly, especially for the 24-month look-back test. We mapped what could realistically be moved before closing and what could not.
  2. Had the corporation's accountant confirm the asset breakdown. Before restructuring anything, we needed an agreed, defensible split between active and passive assets by fair market value — the GICs, the securities and the rental property, each valued separately.
  3. Moved the liquid assets out through a tax-deferred rollover. The GICs and securities, being liquid and unencumbered, could be transferred out of the operating company into a newly incorporated holding company on a tax-deferred basis well before closing. That alone removed about $200,000 of passive assets from the company being sold.
  4. Assessed the rental property separately. The duplex was a harder case. It carried a tenant with a lease that ran past the closing date, and transferring real property brought its own timing and land transfer considerations. Moving it out cleanly, and having it count toward the 24-month active-asset test in time, was not going to happen before Samir wanted to close.
  5. Negotiated with Samir's side to exclude the property from the sale. Rather than delay closing indefinitely to chase full purification, we proposed that Hodan and Rania retain the rental property through their new holding company, and that the purchase price be reduced by its roughly $115,000 equity value to reflect that it was no longer part of what Samir was buying.
  6. Built in an indemnity for the remaining exposure. Even after the property came out, the company had held it as a passive asset for part of the 24-month window before closing. That created a residual risk that the Canada Revenue Agency could later take the position that the shares failed the qualification test for at least part of that period. We negotiated a capped indemnity from Hodan and Rania in Samir's favour, protecting him if that risk ever materialized against the company post-sale, in exchange for him accepting the adjusted structure.

The outcome

The liquid passive assets came out cleanly and well ahead of closing, which meant the bulk of the $315,000 problem was resolved outright. The rental property was the piece that could not be fully purified on the available timeline, and both sides accepted a practical compromise rather than pushing the deal past its closing date or abandoning it: Hodan and Rania kept the property, the price came down by its equity value to reflect that, and a capped indemnity covered the narrower risk tied to the months the property had spent inside the company before it was moved out.

That compromise meant Hodan and Rania's exemption claim was on much firmer ground than it had been at the start of due diligence, but not entirely beyond challenge — the company's qualification for part of the 24-month window remained a technical question that, in the worst case, could still draw a reassessment. Samir, for his part, got the business he actually wanted to run without inheriting a rental property or a stock portfolio, at a price adjusted to match. Neither side got the clean, fully purified sale they might have had with more lead time, but both walked away from closing with a structure they understood and could live with.

Closing went ahead on schedule. Hodan and Rania transitioned the pharmacy to Samir over a short handover period, kept the duplex as a rental investment held through their new holding company, and filed their returns for the year with a share sale that their accountant was comfortable defending if the Canada Revenue Agency ever asked questions about the months before the reorganization. Samir took over a dispensary with a clean balance sheet, free of assets he never intended to manage, and a purchase price that reflected exactly what he was buying.

What you can learn from this

  • If a corporation you plan to sell has been accumulating cash, investments or a rental property inside it, start purification well before you have a buyer — the 24-month look-back test rewards early planning far more than last-minute fixes.
  • Gig income, locum work or other side contracts billed through an existing corporation can quietly turn an otherwise clean operating company into a mixed one. Consider a separate entity for income streams that are not core to the business you eventually intend to sell.
  • Liquid assets like cash and securities can usually be moved out of a company quickly through a tax-deferred rollover. Real property is a different problem — leases, land transfer considerations and valuation timing can all limit how fast it can be purified.
  • A buyer's due diligence team has every incentive to flag passive assets, since they are usually paying for a specific operating business, not a bundle of unrelated investments. Expect this to surface even if you have not thought about it yourself.
  • When full purification is not possible before closing, a price adjustment paired with a capped indemnity can let a deal close on schedule while fairly allocating the residual tax risk between buyer and seller.
This case study is entirely fictional. It does not describe any real client, file, or matter handled by Treadstone Law, and it is not a real file with details changed. All names, people, properties, businesses, dollar amounts, dates, and events are invented, and any resemblance to a real person, business, or situation is coincidental. Fictional scenarios like this one illustrate the kinds of legal issues people in Ontario commonly face and how a lawyer can help. They are general information, not legal advice — no two matters unfold the same way, and nothing here predicts the outcome of any real case. Reading a case study does not create a lawyer-client relationship. If you are facing something similar, speak with a lawyer about your specific circumstances.

This is a tax problem we handle

Start a file online — flat, published fees, reviewed by a licensed lawyer before a dollar is owed.

ContactStart a File →