The order of the calculation, as the code writes it

The Direct Taxes Code leaves no choice about the order. Start from the sale price, less the selling costs you paid (art. 78 para. 2). Subtract the cost basis: purchase price, value at the estate or gift, or creation value, plus documented purchase costs and works. Those costs and works count only up to 30 % of the purchase price (art. 78 para. 3).

The gain is then reduced by an allowance of 5 % per year of ownership from the third year, capped at 50 % (art. 79). We count 5 % at three full years and 50 % at twelve; the other possible reading is shown when it changes the result. The 15 % rate applies next, and the tax is final (art. 104). The 50 % reduction for a home that is both your only property and your main residence applies to the tax, not to the gain.

The 40 % flat value is not an option

Since the 2026 Finance Act, when the acquisition price cannot be determined, it is set at 40 % of the sale price (art. 78 para. 5). Old properties, family partitions, deeds without a price: that is the case it targets. When a deed states a price, that price counts, even if it is low.

Under the flat value, purchase costs and works are no longer deducted, even with invoices. Selling costs remain deductible, as the example in circular 09/MF/DGI/LF.2026 shows. The holding-period allowance still applies.

Two dates to watch

The first is the G no. 17 deadline: 30 days after the deed, even when nothing is due. The second is the anniversary of the day you took ownership, because each full year after the third adds 5 % of allowance. When that threshold falls less than three months after the planned date of the deed, the tool flags it with the saving in dinars.

For an inherited property we count from the date of death. For a gift, from the deed of gift; for a building, from the certificate of conformity. These are the readings we use in our files, since the text only speaks of the "date of entry into possession".

Frequently asked questions

Read next

A figure that surprises you?

A calculator gives an order of magnitude, not a decision. If the gap with your actual situation puzzles you, the first one-hour consultation is free.

See our tax support → Pre-flight check — 1 h free All tools