{
 "schema": "ug-calc-trace-set/1",
 "title": "GCSE grade calculation, every line checked",
 "page": "https://gcsegenius.co.uk/gcse-tools/labs/gcse-grade-calculation-proof?utm_source=labs&utm_medium=page&utm_campaign=gcse-grade-calculation-proof&utm_content=download",
 "start": {
  "url": "https://gcsegenius.co.uk/gcse-maths/learn?utm_source=labs&utm_medium=page&utm_campaign=gcse-grade-calculation-proof&utm_content=download",
  "label": "Start GCSE Maths free"
 },
 "generated": "2026-10-06",
 "howToCheck": "Re-run each step in order. A const step's value equals its literal. Any other step's value equals its op applied to the values of the step ids in args, in exact fractions (values are stored as p/q). Ops: add, sub, mul, div (element by element on lists), sum, dot, min, max, ge (1 or 0), if (cond, then, else), floor, roundHalfUp, roundHalfEven, lookup (table, key, column), pick (cond, label, ..., fallback).",
 "licence": "Free to reuse with a link to the page above.",
 "traces": [
  {
   "schema": "ug-calc-trace/1",
   "id": "gcse-edexcel-higher-2026",
   "title": "Edexcel 1MA1 GCSE Maths Higher: 52 + 48 + 47 against a typed grade 6 boundary of 140",
   "tool": {
    "name": "GCSE grade calculator",
    "url": "https://gcsegenius.co.uk/gcse-tools/gcse-grade-calculator?utm_source=labs&utm_medium=page&utm_campaign=gcse-grade-calculation-proof&utm_content=download"
   },
   "inputs": [
    {
     "label": "Qualification",
     "value": "Edexcel 1MA1 GCSE Maths Higher"
    },
    {
     "label": "Paper 1",
     "value": "52 of 80"
    },
    {
     "label": "Paper 2",
     "value": "48 of 80"
    },
    {
     "label": "Paper 3",
     "value": "47 of 80"
    },
    {
     "label": "Grade 6 boundary typed in (example)",
     "value": "140 of 240"
    }
   ],
   "sources": [
    {
     "id": "board",
     "publisher": "Pearson Edexcel",
     "title": "Pearson's grade boundaries page",
     "url": "https://qualifications.pearson.com/en/support/support-topics/results-certification/grade-boundaries.html"
    }
   ],
   "steps": [
    {
     "id": "s1",
     "say": "Paper 1 mark, out of 80",
     "op": "const",
     "literal": "52",
     "key": true,
     "value": "52"
    },
    {
     "id": "s2",
     "say": "Paper 2 mark, out of 80",
     "op": "const",
     "literal": "48",
     "key": true,
     "value": "48"
    },
    {
     "id": "s3",
     "say": "Paper 3 mark, out of 80",
     "op": "const",
     "literal": "47",
     "key": true,
     "value": "47"
    },
    {
     "id": "s4",
     "say": "Total mark: the papers added together",
     "op": "sum",
     "args": [
      "s1",
      "s2",
      "s3"
     ],
     "key": true,
     "value": "147"
    },
    {
     "id": "s5",
     "say": "Maximum total",
     "op": "const",
     "literal": "240",
     "src": "board",
     "value": "240"
    },
    {
     "id": "s6",
     "say": "Grade 6 boundary, as typed in from the board's page (an example input, not the board's figure)",
     "op": "const",
     "literal": "140",
     "key": true,
     "value": "140"
    },
    {
     "id": "s7",
     "say": "Does the total reach grade 6? (1 yes, 0 no)",
     "op": "ge",
     "args": [
      "s4",
      "s6"
     ],
     "value": "1"
    },
    {
     "id": "s8",
     "say": "Boundary minus total (negative: above the boundary)",
     "op": "sub",
     "args": [
      "s6",
      "s4"
     ],
     "key": true,
     "value": "-7"
    },
    {
     "id": "s9",
     "say": "Reached",
     "op": "const",
     "literal": {
      "text": "Grade 6 reached"
     },
     "value": {
      "text": "Grade 6 reached"
     }
    },
    {
     "id": "s10",
     "say": "Not yet",
     "op": "const",
     "literal": {
      "text": "Short of grade 6"
     },
     "value": {
      "text": "Short of grade 6"
     }
    },
    {
     "id": "s11",
     "say": "The answer",
     "op": "pick",
     "args": [
      "s7",
      "s9",
      "s10"
     ],
     "key": true,
     "value": {
      "text": "Grade 6 reached"
     }
    }
   ],
   "result": "s11",
   "answer": "Grade 6 reached",
   "generated": "2026-10-06"
  },
  {
   "schema": "ug-calc-trace/1",
   "id": "gcse-aqa-foundation-2026",
   "title": "AQA 8300 GCSE Maths Foundation: 55 + 50 + 50 against a typed grade 5 boundary of 160",
   "tool": {
    "name": "GCSE grade calculator",
    "url": "https://gcsegenius.co.uk/gcse-tools/gcse-grade-calculator?utm_source=labs&utm_medium=page&utm_campaign=gcse-grade-calculation-proof&utm_content=download"
   },
   "inputs": [
    {
     "label": "Qualification",
     "value": "AQA 8300 GCSE Maths Foundation"
    },
    {
     "label": "Paper 1",
     "value": "55 of 80"
    },
    {
     "label": "Paper 2",
     "value": "50 of 80"
    },
    {
     "label": "Paper 3",
     "value": "50 of 80"
    },
    {
     "label": "Grade 5 boundary typed in (example)",
     "value": "160 of 240"
    }
   ],
   "sources": [
    {
     "id": "board",
     "publisher": "AQA",
     "title": "AQA's grade boundaries page",
     "url": "https://www.aqa.org.uk/exams-administration/results-days/grade-boundaries"
    }
   ],
   "steps": [
    {
     "id": "s1",
     "say": "Paper 1 mark, out of 80",
     "op": "const",
     "literal": "55",
     "key": true,
     "value": "55"
    },
    {
     "id": "s2",
     "say": "Paper 2 mark, out of 80",
     "op": "const",
     "literal": "50",
     "key": true,
     "value": "50"
    },
    {
     "id": "s3",
     "say": "Paper 3 mark, out of 80",
     "op": "const",
     "literal": "50",
     "key": true,
     "value": "50"
    },
    {
     "id": "s4",
     "say": "Total mark: the papers added together",
     "op": "sum",
     "args": [
      "s1",
      "s2",
      "s3"
     ],
     "key": true,
     "value": "155"
    },
    {
     "id": "s5",
     "say": "Maximum total",
     "op": "const",
     "literal": "240",
     "src": "board",
     "value": "240"
    },
    {
     "id": "s6",
     "say": "Grade 5 boundary, as typed in from the board's page (an example input, not the board's figure)",
     "op": "const",
     "literal": "160",
     "key": true,
     "value": "160"
    },
    {
     "id": "s7",
     "say": "Does the total reach grade 5? (1 yes, 0 no)",
     "op": "ge",
     "args": [
      "s4",
      "s6"
     ],
     "value": "0"
    },
    {
     "id": "s8",
     "say": "Boundary minus total (negative: above the boundary)",
     "op": "sub",
     "args": [
      "s6",
      "s4"
     ],
     "key": true,
     "value": "5"
    },
    {
     "id": "s9",
     "say": "Reached",
     "op": "const",
     "literal": {
      "text": "Grade 5 reached"
     },
     "value": {
      "text": "Grade 5 reached"
     }
    },
    {
     "id": "s10",
     "say": "Not yet",
     "op": "const",
     "literal": {
      "text": "Short of grade 5"
     },
     "value": {
      "text": "Short of grade 5"
     }
    },
    {
     "id": "s11",
     "say": "The answer",
     "op": "pick",
     "args": [
      "s7",
      "s9",
      "s10"
     ],
     "key": true,
     "value": {
      "text": "Short of grade 5"
     }
    }
   ],
   "result": "s11",
   "answer": "5 marks short of grade 5",
   "generated": "2026-10-06"
  },
  {
   "schema": "ug-calc-trace/1",
   "id": "gcse-ocr-higher-2026",
   "title": "OCR J560 GCSE Maths Higher: 61 + 54 + 58 against a typed grade 6 boundary of 170",
   "tool": {
    "name": "GCSE grade calculator",
    "url": "https://gcsegenius.co.uk/gcse-tools/gcse-grade-calculator?utm_source=labs&utm_medium=page&utm_campaign=gcse-grade-calculation-proof&utm_content=download"
   },
   "inputs": [
    {
     "label": "Qualification",
     "value": "OCR J560 GCSE Maths Higher"
    },
    {
     "label": "Paper 4",
     "value": "61 of 100"
    },
    {
     "label": "Paper 5",
     "value": "54 of 100"
    },
    {
     "label": "Paper 6",
     "value": "58 of 100"
    },
    {
     "label": "Grade 6 boundary typed in (example)",
     "value": "170 of 300"
    }
   ],
   "sources": [
    {
     "id": "board",
     "publisher": "OCR",
     "title": "OCR's grade boundaries page",
     "url": "https://www.ocr.org.uk/administration/grade-boundaries/"
    }
   ],
   "steps": [
    {
     "id": "s1",
     "say": "Paper 4 mark, out of 100",
     "op": "const",
     "literal": "61",
     "key": true,
     "value": "61"
    },
    {
     "id": "s2",
     "say": "Paper 5 mark, out of 100",
     "op": "const",
     "literal": "54",
     "key": true,
     "value": "54"
    },
    {
     "id": "s3",
     "say": "Paper 6 mark, out of 100",
     "op": "const",
     "literal": "58",
     "key": true,
     "value": "58"
    },
    {
     "id": "s4",
     "say": "Total mark: the papers added together",
     "op": "sum",
     "args": [
      "s1",
      "s2",
      "s3"
     ],
     "key": true,
     "value": "173"
    },
    {
     "id": "s5",
     "say": "Maximum total",
     "op": "const",
     "literal": "300",
     "src": "board",
     "value": "300"
    },
    {
     "id": "s6",
     "say": "Grade 6 boundary, as typed in from the board's page (an example input, not the board's figure)",
     "op": "const",
     "literal": "170",
     "key": true,
     "value": "170"
    },
    {
     "id": "s7",
     "say": "Does the total reach grade 6? (1 yes, 0 no)",
     "op": "ge",
     "args": [
      "s4",
      "s6"
     ],
     "value": "1"
    },
    {
     "id": "s8",
     "say": "Boundary minus total (negative: above the boundary)",
     "op": "sub",
     "args": [
      "s6",
      "s4"
     ],
     "key": true,
     "value": "-3"
    },
    {
     "id": "s9",
     "say": "Reached",
     "op": "const",
     "literal": {
      "text": "Grade 6 reached"
     },
     "value": {
      "text": "Grade 6 reached"
     }
    },
    {
     "id": "s10",
     "say": "Not yet",
     "op": "const",
     "literal": {
      "text": "Short of grade 6"
     },
     "value": {
      "text": "Short of grade 6"
     }
    },
    {
     "id": "s11",
     "say": "The answer",
     "op": "pick",
     "args": [
      "s7",
      "s9",
      "s10"
     ],
     "key": true,
     "value": {
      "text": "Grade 6 reached"
     }
    }
   ],
   "result": "s11",
   "answer": "Grade 6 reached",
   "generated": "2026-10-06"
  }
 ]
}