Tax & NI Calculator 2025 / 2026

API Usage

This website provides a REST API to calculate tax and National Insurance (NI) details. To use the Tax & NI Calculator API, send a POST request to https://tax.log7.uk/calculator/api/calculate/ with the following JSON payload:

{
  "income": 45000,
  "income_type": "yearly",
  "workweek_hours": 40,
  "is_blind": false,
  "no_ni": false,
  "is_scotland": false
}
                    

Example using curl (Unix-like systems):

curl -X POST https://tax.log7.uk/calculator/api/calculate/ \
    -H "Content-Type: application/json" \
    -d '{
          "income": 45000,
          "income_type": "yearly",
          "workweek_hours": 40,
          "is_blind": false,
          "no_ni": false,
          "is_scotland": false
        }'
                    

Example using curl (Windows):

curl -X POST https://tax.log7.uk/calculator/api/calculate/ ^
    -H "Content-Type: application/json" ^
    -d "{
          \"income\": 45000,
          \"income_type\": \"yearly\",
          \"workweek_hours\": 40,
          \"is_blind\": false,
          \"no_ni\": false,
          \"is_scotland\": false
        }"
                    

The API will return a JSON response with the calculated tax and NI details.