Skip to content

RULES AS CODE · DEMONSTRATOR

The trading and property allowances, as executable law with citations.

A working model of Part 6A of the Income Tax (Trading and Other Income) Act 2005, built from the official text on legislation.gov.uk. Every answer shows the provisions it relies on. Every gap in the law is logged for an expert. Every amendment is traced to the rules and tests it touches.

provisions in Part 6A linked to coded rules
145 of 188
test cases passing, run live in this page
22 of 22
open questions logged for expert review
8
provisions changed by Finance Acts 2022 and 2024, traced
6

Law as in force from 15 July 2026, retrieved 23 November 2026 from legislation.gov.uk. Rule set part6a@2026-07-15. A demonstrator for discussion, not tax advice, and not reviewed by HMRC.

01 · TRY A CASE

Change the facts and watch the law apply.

Start from any test case, or edit the figures. Click a gold citation to read the provision it rests on.
Trade 1
Miscellaneous income (Part 5 Chapter 8)
Payments from connected parties
Elections

Outcome

Full relief

Relevant income

£1,300

Taxable after Part 6A

£0

SourceTreatmentNormal profitTaxable
GardeningFull relief£1,100£0

Nothing to declare from these sources under full relief.

Any election for this year must be made by 31 January 2028.

The comparison above is guidance generated by the engine, not part of the law.

How the answer was reached (9 steps)

  1. The trading allowance is £1,000.

  2. Gardening: a relevant trade (sole trader, not a rent-a-room trade).

  3. Relevant income is £1,300: £1,300 of relevant trade receipts plus £0 of miscellaneous income. Receipts are gross; expenses do not reduce this figure.

  4. Rent-a-room exclusion does not apply: no qualifying rent-a-room receipts in these sources.

  5. No payments from an employer, own firm or close company in the relevant income.

  6. Relevant income of £1,300 exceeds the £1,000 allowance.

  7. Cash basis applies. If a s25C(1) GAAP election were assumed, relevant income would be £900, within the allowance.

    ITTOIA 2005 s25C(1)Inferred, see A1
  8. Qualifies for full relief under s783AE(2): the excess is only a cash basis timing difference.

  9. Profits or losses of each relevant trade are treated as nil.

02 · WHEN THE LAW CHANGES

An amendment, traced to the rules and tests it affects.

The pipeline compares the text in force from 22 July 2020 with today's text, names the amending provision for each change, and lists the coded rules and test cases that rest on it. Those are re-reviewed by an expert before a new rule set is released.

S. 783AE(3)(a) substituted (6.4.2024 for the tax year 2024-25 and subsequent tax years) by Finance Act 2024 (c. 3), Sch. 10 paras. 31(a), 47

Before

no election by the individual under section 25A (cash basis for trades) has effect for the tax year,

Now

the cash basis applies for the tax year in relation to one or more of the trades mentioned in subsection (2)(a);

Rules to re-review: Trading: Full relief, cash basis timingTests to re-run:

Word in s. 783AE(3)(b) substituted (6.4.2024 for the tax year 2024-25 and subsequent tax years) by Finance Act 2024 (c. 3), Sch. 10 paras. 31(b)(i), 47

Before

the individual's relevant income would not exceed the individual's trading allowance for the tax year if it were to be assumed that an election by the individual under section 25A had effect for the tax year,

Now

the individual's relevant income would not exceed the individual's trading allowance for the tax year if it were to be assumed that an election by the individual under section 25C(1) had effect for the tax year, in relation to one or more of the trades mentioned in paragraph (a)

Rules to re-review: Trading: Full relief, cash basis timingTests to re-run:

S. 783AE(3)(c) omitted (6.4.2024 for the tax year 2024-25 and subsequent tax years) by virtue of Finance Act 2024 (c. 3), Sch. 10 paras. 31(c), 47

Before

the individual is eligible to make an election under section 25A (see section 31A) for the tax year, and

Now

[Omitted]

Rules to re-review: Trading: Full relief, cash basis timingTests to re-run:

S. 783AE(3)(d) omitted (6.4.2024 for the tax year 2024-25 and subsequent tax years) by virtue of Finance Act 2024 (c. 3), Sch. 10 paras. 31(c), 47

Before

if any trade carried on by the individual in the tax year was carried on in the immediately preceding tax year— (i) an election by the individual under section 25A had effect for that preceding tax year, or (ii) the individual was eligible to make such an election for that preceding tax year.

Now

[Omitted]

Rules to re-review: Trading: Full relief, cash basis timingTests to re-run:

Words in s. 783AI(2) omitted (6.4.2024 for the tax year 2024-25 and subsequent tax years) by virtue of Finance Act 2022 (c. 3), Sch. 1 paras. 21(2), 61(1)

Before

The profits or losses for the tax year of each of the individual's relevant trades are given by taking the following steps— … Step 1 Calculate the total of all the amounts which would, apart from this Chapter, be brought into account as a receipt in calculating the profits of the trade for the tax year. Step 2 Subtract the deductible amount. Step 3 Subtract from the amount given by step 2 any deduction for overlap profit allowed in calculating the profits of the trade for the tax year under section 205 (deduction for overlap profit in final tax year) or section 220 (deduction for overlap profit on change of accounting date).

Now

The profits or losses for the tax year of each of the individual's relevant trades are given by taking the following steps— … Step 1 Calculate the total of all the amounts which would, apart from this Chapter, be brought into account as a receipt in calculating the profits of the trade for the tax year. Step 2 Subtract the deductible amount. [words omitted]

Rules to re-review: Trading: Partial relief calculationTests to re-run:

S. 783AI(4) omitted (6.4.2024 for the tax year 2024-25 and subsequent tax years) by virtue of Finance Act 2022 (c. 3), Sch. 1 paras. 21(3), 61(1)

Before

“Overlap profit” has the same meaning in this section as it has in Chapter 15 of Part 2 (see sections 204 and 204A).

Now

[Omitted]

Rules to re-review: none codedTests to re-run: none

03 · WHAT THE LAW LEAVES OPEN

Inferred and ambiguous points are logged, never resolved silently.

Each entry is cited by the engine wherever it relies on it. Closing them needs a tax policy expert, a lawyer or a rules expert. The log is also an input to simplification work: each entry is a place where the law is harder to apply than it looks.
IdTypeProvisionsQuestionWhat the engine does nowOwner
A1inferred
Full relief applies if income would be within the allowance assuming a GAAP election 'in relation to one or more of the trades'. With several cash-basis trades, which trades are assumed to elect?The most favourable combination: each cash-basis trade takes the lower of its cash and GAAP receipts.Tax policy expert
A2ambiguous
'At a time when the individual is an employee of the person': does a payment received after the employment ended, for work done during it, trigger the exclusion?Not decided by the engine. The user answers the yes/no question, so the judgement stays with a human.Lawyer
A3inferred
The split of the allowance between sources is 'decided by the individual'. What should a calculator do when no choice has been recorded?Fill sources in order up to each one's limit, and say so in the trace. The total taxable amount is the same for any valid split.Rules expert
A4external
'Connected with a partner in the firm' is not defined in Part 6A. Which definition of connected persons applies, and does it reach unmarried partners?Not coded. The user answers the yes/no question directly.Lawyer
A5externalThe rent-a-room limit comes from s789: £7,500, halved if the exclusive receipts condition in s790 is not met. s790 itself is not coded.Uses £7,500 or £3,750 from a yes/no answer to the s790 condition.Rules expert
A6inferred
Under full property relief, rent-a-room receipts in the same business are not relievable. How are expenses split between relievable and rent-a-room receipts?Not computed: the rent-a-room part is flagged as falling under Part 7 Chapter 1.Tax policy expert
A7external
Part 6A Chapter 1
Finance Act 2020 Sch 16 para 4(4) excludes Chapter 1 for coronavirus support payments. The exclusion sits outside Part 6A and is not coded.Not modelled; it only matters for tax years in which those payments were made.Rules expert
A8ambiguous
A relevant trade with expenses but no receipts in the year: is it one of the trades whose 'profits or losses' are treated as nil under full relief?Treated as outside s783AF, so its loss is kept. Flagged for expert review.Tax policy expert

04 · COVERAGE AND DEPENDENCIES

What is coded, and what Part 6A depends on outside itself.

Each section of Part 6A with the share of its provisions linked to coded rules, the sections it points to, and its references to other parts of the Act and other Acts. External references are where a full model would need to reach next.
SectionHeadingCodedPoints toDepends on, outside Part 6A
Trading allowance
Relief under this Chapter
1/6
“Relevant trade” of an individual
6/7
Chapter 1 of Part 7
“Miscellaneous income”
6/7
Chapter 8 of Part 5Chapter 1 of Part 7
The individual's “relevant income”
4/4
The individual's trading allowance
2/2
Full relief: introduction
13/13
Full relief: trade profits
1/4
Full relief: miscellaneous income
3/6
Partial relief: alternative calculation of profits: introduction
4/4
Partial relief: alternative calculation of trade profits
2/5
Partial relief: alternative calculation of chargeable miscellaneous income
4/7
Deductible amount: splitting of trading allowance
7/7
Election for full relief not to be given
2/2
Election for partial relief
2/2
Exclusion from relief: expenses deducted against rent-a-room receipts
9/13
Chapter 1 of Part 7Chapter 8 of Part 5ITTOIA 2005 s799ITTOIA 2005 s800
Exclusion from relief: payments by employer
5/5
Exclusion from relief: payments by firm
5/5
Exclusion from relief: payments by close company
6/6
Part 10 of CTA 2010CTA 2010 s448CTA 2010 s454
Interpretation of this Chapter
2/3
Property allowance
Relief under this Chapter
1/5
“Relevant property business” of an individual
4/8
Chapter 1 of Part 7regulation 69Z18(1) or (2) of the AIF Regulationsregulation 69Z18(6) of the AIF RegulationsS.I. 2006/964
“Relievable receipts” of a property business
4/6
Chapter 1 of Part 7Part 2 of CAA 2001
The individual's “relevant property income”
1/1
The individual's property allowance
2/2
Full relief: introduction
4/4
Full relief: property profits
3/4
Partial relief: alternative calculation of property profits: introduction
4/4
Partial relief: alternative calculation of property profits
4/8
Deductible amount: splitting of property allowance
4/4
Election for full relief not to be given
1/2
Election for partial relief
1/2
Exclusion from relief: tax reduction under section 274A
1/1
section 23 of ITA 2007ITTOIA 2005 s274A
Exclusion from relief: expenses deducted against rent-a-room receipts
9/10
Exclusion from relief: payments by employer
5/5
Exclusion from relief: payments by firm
5/5
Exclusion from relief: payments by close company
6/6
Part 10 of CTA 2010CTA 2010 s448CTA 2010 s454
Interpretation of this Chapter
2/3

05 · TEST SUITE

22 of 22 cases pass, checked live in your browser.

Written from the statute by RankSaga. In a proof of concept, HMRC's rules experts would write or sign off these cases, and accuracy would be measured against them. The same suite runs in CI with node scripts/rules-as-code/run-tests.mjs.
CaseWhat it checksProvisionsResult
Dog walker with £800 of receipts gets full relief
Pass
Exactly £1,000 of receipts is still within the allowance
Pass
Allowance is tested on gross receipts, not profit
Pass
Partial relief: £3,000 receipts less the £1,000 allowance, expenses ignored
Pass
Partial relief election is invalid when income is within the allowance
Pass
Electing out of full relief keeps a loss
Pass
Payment from own employer removes all relief
Pass
Payment from a close company the individual participates in removes relief
Pass
A partnership trade is not a relevant trade
Pass
Cash basis timing: £1,300 cash receipts but £900 on GAAP gives full relief
Pass
Cash basis route closed when a GAAP election is in place
Pass
Cash basis route fails if a partial relief election has effect
Pass
Trade plus miscellaneous income: allowance split, total invariant
Pass
Allocation that would push a trade below zero is rejected
Pass
Treasury can raise the allowance but not lower it
Pass
Tax years before 2024-25 use the pre-Finance Act 2024 text and are refused
Pass
Rent-a-room over the limit with no s800 election excludes the trading allowance
Pass
Renting a driveway for £900 gets full property relief
Pass
Property partial relief: £4,000 rent less £1,000, expenses ignored
Pass
Claiming the s274A finance cost reduction removes the property allowance
Pass
A business with only rent-a-room receipts is not a relevant property business
Pass
UK and overseas businesses share one allowance
Pass

LIMITS OF THIS DEMONSTRATOR

  • Covers tax years 2024-25 onwards; earlier years need the earlier text, which the engine refuses rather than guesses.
  • Not modelled: REIT and property AIF distributions (s783BA(3)), non-relievable balancing charges (s783BB(3)), the rent-a-room computation itself, and the coronavirus support payment exclusion.
  • Questions of fact with legal judgement in them, such as whether someone is connected with a partner, are asked of the user, not decided by the engine.
  • Contains public sector information licensed under the Open Government Licence v3.0.

Built by RankSaga

We build retrieval, evaluation and document understanding systems for government and defence, including software running in an air-gapped environment.

Talk to us