Rule uk_minimum_wage v1

The UK hourly minimum wage from 1 April 2026, transcribed from GOV.UK

Try a case

Enter the inputs: the rows that match light up and the outputs appear. What runs is the generated code itself, and the line it would write to a log is shown as it is.


Inputs

NameTypeRangeNotes
agenumber16 to 70
apprenticebool
first_yearbool

Outputs

NameTypeRoundingNotes
hourlymoney[GBPc]down(1GBPc) (rounded down to 1GBPc)

Table by_age (policy unique)

Source: gov table1 (sources/uk-nmw.md, sha256:bc45eedf7f908896)

Age groupHourly rate
21 and over£12.71
18 to 20£10.85
Under 18£8
Apprentice£8
ColumnSource
ageInput
→ hourlyOutput of this rule
#age→ hourly (money[GBPc] / down(1GBPc))
1<18 (less than 18)800GBPc
2>=18 <=20 (from 18 to 20)1085GBPc
3>=21 (21 or more)1271GBPc

What rulec check verified is under "How hourly is decided".

Table apprentice_rate (policy unique)

Source: gov table1 (sources/uk-nmw.md, sha256:bc45eedf7f908896)

Age groupHourly rate
21 and over£12.71
18 to 20£10.85
Under 18£8
Apprentice£8
ColumnSource
apprenticeInput
first_yearInput
ageInput
→ hourlyOutput of this rule
#apprenticefirst_yearage→ hourly (money[GBPc] / down(1GBPc))
1true (yes)-<19 (less than 19)800GBPc
2true (yes)true (yes)>=19 (19 or more)800GBPc

A - means the column may be any value.

What rulec check verified is under "How hourly is decided".

How hourly is decided

hourly is defined by table by_age, table apprentice_rate; they are tried in the order table apprentice_rate, table by_age, and the first that applies is the answer.

What rulec check verified

Examples (verified)

ageapprenticefirst_year→ hourly
25falsefalse1271GBPc
19falsefalse1085GBPc
17falsefalse800GBPc
25truetrue800GBPc
25truefalse1271GBPc
18truefalse800GBPc

rulec check ran these 6 examples through the reference evaluator, and every one produced the declared values (E107). The examples are an executable specification.