Bookmark this: tool.io/take-home-pay-calculator/uk/source-code
UK Take-Home Pay Calculator Source Code
Browse the implementation files for UK Take-Home Pay Calculator.tool.ts typescript
import TakeHomePayCalculator from '../TakeHomePayCalculator.svelte';
import { commonPeriods } from '../config';
import { createTakeHomePayPreview } from '../preview';
import { calculateUKTakeHomePay } from './calculate';
export { calculateUKTakeHomePay };
export const Tool: TypeTool = {
name: 'UK Take-Home Pay Calculator',
slug: 'take-home-pay-calculator/uk',
intro:
'Estimate UK take-home pay after PAYE income tax and employee National Insurance.',
tool: calculateUKTakeHomePay,
i: [],
o: [
{
label: 'Take-home pay',
placeholder: 'Estimated take-home pay',
render: 'custom',
renderas: TakeHomePayCalculator,
type: 'text'
}
],
takeHomePay: {
advancedFields: [
{
key: 'pensionRate',
label: 'Pension contribution (%)',
type: 'number',
value: '0'
}
],
assumptions: [
'2026–27',
'England',
'Standard personal allowance',
'NI category A',
'No pension',
'No student loan'
],
country: 'United Kingdom',
countryCode: 'uk',
currency: 'GBP',
locale: 'en-GB',
locations: [
{
text: 'England, Wales or Northern Ireland',
value: 'england'
}
],
periods: [
...commonPeriods,
{ text: 'Weekly', value: 'weekly' }
],
summaryPeriods: [
{ text: 'Yearly pay', value: 'yearly' },
{ text: 'Monthly pay', value: 'monthly' }
]
},
alternative: [
{
title: 'US Paycheck Calculator',
url: '/take-home-pay-calculator/us/paycheck-calculator'
},
{
title: 'Germany Take-Home Pay Calculator',
url: '/take-home-pay-calculator/de/brutto-netto-rechner'
}
],
cite: [
{
title: 'HMRC income-tax rates and allowances',
url: 'https://www.gov.uk/income-tax-rates'
},
{
title: 'HMRC National Insurance contribution rates',
url: 'https://www.gov.uk/national-insurance-rates-letters/contribution-rates'
}
]
};
Tool.preview = createTakeHomePayPreview(Tool);
export default Tool;
Description
Browse the implementation files for UK Take-Home Pay Calculator.