uk tax formula

Adrian1

Board Regular
Joined
Dec 30, 2003
Messages
126
This is a bit of a stab in the dark but does anyone have a formula that would work out UK Tax and NI deductions based on salary top line. I want the formula to be able to calculate my approx earnings after deductions based on how many hours I work, but it needs to also take into consideration extra earnings and higher tax as a result of working overtime. My tax code is 466L. Everything else on my spreadsheet is fine, I just need this formula as I can only get my gross at the moment and want net! (take home pay)

Cheers
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I thought I'd poke my nose in and add this. Note. All thresholds are based on 2023/24 tax year. Unless there's a policy change, there will be no changes before 2028.
Based on the formula to calculate the total tax =MAX(MAX(I4-(U$4),0)*0.45+MIN(MAX(I4-(U$5),0),(U$4-U$5))*0.4+MIN(I4-(U$6),(U$5-U$6))*0.2+MAX((MIN(I4,(U$4))-(U$7))/2,0)*0.4,0)
[modified from the formula =MAX(MAX(A1-150000,0)*0.45+MIN(MAX(A1-43000,0),150000-43000)*0.4+MIN(A1-11000,43000-11000)*0.2+MAX((MIN(A1,122000)-100000)/2,0)*0.4,0) originally posted here by Fivecases] I split it into monthly and separated the individual tax rates. It seems to work.

20% tax =IF(MIN(C4-(O$6),(O$5-O$6))*0.2>0,MIN(C4-(O$6),(O$5-O$6))*0.2,0)
40% tax =MIN(MAX(C4-(O$5),0),(O$4-O$5))*0.4+MAX((MIN(C4,(O$4))-(O$7))/2,0)*E$3
45% tax =MAX(MAX(C4-(O$4),0)*F$3)
Hidden column B4:B15 days in month formulae to calculate "Period" dates
"Taxable income" does not take into account allowable tax deductions like employee pension contributions or blind person allowance. Sadly, it only works for regular incomes. I've yet to find a way to make it work on accrued incomes. For example if one month you work overtime and it takes you into the 40% tax band followed by a couple of months on reduced income resulting in previous 40% tax overpayments refunded. Maybe one day, I'll succeed.
National Insurance =IF(C4<=I4,0,IF(C4<=J4,(C4-I4)*10%,(J4-I4)*10%+((C4-J4)*2%)))

Cell Formulas
RangeFormula
D4:D15D4=IF(MIN(C4-(O$6),(O$5-O$6))*0.2>0,MIN(C4-(O$6),(O$5-O$6))*0.2,0)
E4:E15E4=MIN(MAX(C4-(O$5),0),(O$4-O$5))*0.4+MAX((MIN(C4,(O$4))-(O$7))/2,0)*0.4
F4:F15F4=MAX(MAX(C4-(O$4),0)*0.45)
G4:G15G4=MAX(MAX(C4-(O$4),0)*0.45 +MIN(MAX(C4-(O$5),0),(O$4-O$5))*0.4 +MIN(C4-(O$6),(O$5-O$6))*0.2 +MAX((MIN(C4,(O$4))-(O$7))/2,0)*0.4,0)
H4:H15H4=D4+E4+F4
K4:K15K4=IF(C4<=I4,0,IF(C4<=J4,(C4-I4)*10%,(J4-I4)*10%+((C4-J4)*2%)))
L4:L15L4=G4+K4
M4:M15M4=C4-L4
A5:A15A5=A4+B4
O4O4=125140/12
O5O5=50270/12
O6O6=12570/12
O7O7=100000/12
C17:H17,K17:M17C17=SUM(C4:C15)
 

Attachments

  • Screenshot 2024-04-03 162334.jpg
    Screenshot 2024-04-03 162334.jpg
    180.9 KB · Views: 7
Upvote 0
I thought I'd poke my nose in and add this. Note. All thresholds are based on 2023/24 tax year. Unless there's a policy change, there will be no changes before 2028.
Based on the formula to calculate the total tax =MAX(MAX(I4-(U$4),0)*0.45+MIN(MAX(I4-(U$5),0),(U$4-U$5))*0.4+MIN(I4-(U$6),(U$5-U$6))*0.2+MAX((MIN(I4,(U$4))-(U$7))/2,0)*0.4,0)
[modified from the formula =MAX(MAX(A1-150000,0)*0.45+MIN(MAX(A1-43000,0),150000-43000)*0.4+MIN(A1-11000,43000-11000)*0.2+MAX((MIN(A1,122000)-100000)/2,0)*0.4,0) originally posted here by Fivecases] I split it into monthly and separated the individual tax rates. It seems to work.

20% tax =IF(MIN(C4-(O$6),(O$5-O$6))*0.2>0,MIN(C4-(O$6),(O$5-O$6))*0.2,0)
40% tax =MIN(MAX(C4-(O$5),0),(O$4-O$5))*0.4+MAX((MIN(C4,(O$4))-(O$7))/2,0)*E$3
45% tax =MAX(MAX(C4-(O$4),0)*F$3)
Hidden column B4:B15 days in month formulae to calculate "Period" dates
"Taxable income" does not take into account allowable tax deductions like employee pension contributions or blind person allowance. Sadly, it only works for regular incomes. I've yet to find a way to make it work on accrued incomes. For example if one month you work overtime and it takes you into the 40% tax band followed by a couple of months on reduced income resulting in previous 40% tax overpayments refunded. Maybe one day, I'll succeed.
National Insurance =IF(C4<=I4,0,IF(C4<=J4,(C4-I4)*10%,(J4-I4)*10%+((C4-J4)*2%)))

Cell Formulas
RangeFormula
D4:D15D4=IF(MIN(C4-(O$6),(O$5-O$6))*0.2>0,MIN(C4-(O$6),(O$5-O$6))*0.2,0)
E4:E15E4=MIN(MAX(C4-(O$5),0),(O$4-O$5))*0.4+MAX((MIN(C4,(O$4))-(O$7))/2,0)*0.4
F4:F15F4=MAX(MAX(C4-(O$4),0)*0.45)
G4:G15G4=MAX(MAX(C4-(O$4),0)*0.45 +MIN(MAX(C4-(O$5),0),(O$4-O$5))*0.4 +MIN(C4-(O$6),(O$5-O$6))*0.2 +MAX((MIN(C4,(O$4))-(O$7))/2,0)*0.4,0)
H4:H15H4=D4+E4+F4
K4:K15K4=IF(C4<=I4,0,IF(C4<=J4,(C4-I4)*10%,(J4-I4)*10%+((C4-J4)*2%)))
L4:L15L4=G4+K4
M4:M15M4=C4-L4
A5:A15A5=A4+B4
O4O4=125140/12
O5O5=50270/12
O6O6=12570/12
O7O7=100000/12
C17:H17,K17:M17C17=SUM(C4:C15)
Edit
National Insurance = =MAX(MAX(C4-O$6,0)*2%+MIN(MAX(C4-O$2,0),(O$6-O$2))*10%,0)
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top