Skip to content

Do You Need a Maths Background to Work in AI?

4 min read · updated August 3, 2026

The question is almost always asked by someone who suspects the answer is yes and is quietly deciding whether to give up. The honest answer depends entirely on which of four jobs you mean, and for two of them the required list is short enough to print.

The question behind the question

“Do I need maths” is usually shorthand for “is there a wall here that I cannot get over”. So it is worth separating two things that get conflated. There is the mathematics required to derive what a model does — the material that lets you invent a new architecture or a new optimiser. And there is the mathematics required to reason about a system that contains a model: enough to predict its behaviour, interpret a number, and not be fooled by a result.

The first is a genuine multi-year undertaking and is the entry requirement for research. The second is a list of about six ideas, most of which are taught at school and none of which require you to be fluent in proofs. Almost everyone asking the question wants the second and is being quoted the price of the first.

A useful reframing: you do not need to be able to derive a thing to use it correctly, but you do need to know what it assumes. Every item on the list below is on it because a specific, common, expensive mistake happens when someone does not know what it assumes.

Where maths actually appears

Not in the code you write. It appears at four moments, and this is worth internalising because it tells you what kind of fluency to aim for — reading and sanity-checking, not deriving.

  • When you interpret a number somebody hands you. A benchmark score, an accuracy figure, a similarity value, a confidence. The skill is knowing what the number cannot mean.
  • When you decide whether a difference is real. Two prompts, two models, two retrieval configurations. Without this you will ship noise as improvement, repeatedly, and never find out.
  • When a system behaves in a way that looks like a bug and is arithmetic. Probabilities that do not do what you expect, similarity scores clustering suspiciously high, a cost that grows faster than the input.
  • When you estimate before building. Roughly how much will this cost, roughly how long will it take, roughly how many examples do we need. Order-of-magnitude arithmetic, done in your head, is the highest-leverage mathematical skill in the whole field and the least glamorous.

The short list, and what each one buys

Each of these is here because of the failure it prevents. If a concept could not be paired with a concrete failure it was left out.

ConceptDescription
probability, basicsDistributions, expectation, independence. Buys you: understanding that a model returns a distribution and a sampler picks from it, which is the explanation for non-determinism, for why temperature exists, and for why 'it gave a different answer' is not a bug report.
logarithmsBuys you: reading logprobs without confusion, knowing why probabilities are multiplied in log space, and understanding that a small change in a log value is a large change in a probability. Also: log-scale axes on every graph you will ever be shown about scaling.
vectors, dot products, cosineBuys you: an accurate picture of what an embedding search is doing, why cosine similarity of 0.8 is not '80% relevant', and why two unrelated documents in a specialised corpus can score high. Prevents the single most common retrieval misdiagnosis.
sampling error and confidenceBuys you: knowing that 40 test cases cannot distinguish a 5% difference in failure rate, and roughly how many you need. Prevents shipping noise, and prevents being talked into a model switch by a demo of six examples.
percentiles vs meansBuys you: latency and cost work that is about what users experience rather than about an average nobody had. One slow request destroys a mean and leaves a p95 almost untouched, and knowing which to look at is a daily decision.
growth: linear, quadratic, exponentialBuys you: predicting which things blow up. Attention cost against sequence length, conversation cost against turn count, agent cost against step count. Enough to notice a design that cannot survive its own success.
floating point behaviourNot maths exactly, but it belongs here: knowing that floating-point addition is not associative and that money should not be stored in it. Prevents a class of bug that is invisible until an accountant finds it.

That is the list. Several of the entries have pages of their own — logprobs, similarity metrics, the statistics of evaluation, percentiles and integer money — and each of those is an afternoon, not a semester.

Four roles, four honest answers

  • AI engineer — the list above, and essentially nothing beyond it. The mathematics of the model is somebody else’s; yours is the mathematics of the system around it. The binding constraint on this job is engineering judgement, not algebra.
  • ML engineer — the list, plus enough linear algebra to reason about shapes and enough calculus to have an intuition for what a gradient is and what makes training unstable. You will not derive backpropagation at work, but you will debug a loss that will not go down, and that debugging is easier with the intuition than without.
  • Data scientist — statistics is the job, not a prerequisite for it. Experimental design, inference, confounding, causality. This is the one role where the honest answer to the question is a firm yes, and where the depth required goes well past the list.
  • Researcher — linear algebra, multivariable calculus, probability, optimisation, and fluency in reading proofs. The dependency-ordered curriculum is correct for this path. Nobody should pretend otherwise, and it is a wonderful job for the people who want it.

A test for whether you need more

Rather than a reading list, a diagnostic. Work through your last month and ask: how many times did you make a decision you could not justify with a number, and of those, how many turned out badly?

More specifically, four questions. Answer them honestly, and let the ones you fail choose your next afternoon.

  • Someone says the new prompt is better because it won 7 out of 10 comparisons. Can you say, without looking anything up, whether that is evidence? (If not: sampling error.)
  • A retrieval system returns a chunk with similarity 0.86 that is irrelevant. Can you explain how that is possible? (If not: vectors and what similarity measures.)
  • An agent averages four steps per task and someone proposes allowing twelve. Can you estimate the cost impact in your head, and say whether it is linear? (If not: growth rates, and the reason step caps exist.)
  • Your p50 latency is 800ms and your p95 is 6s. Can you say what that gap probably means, and what it would look like if it were caused by a cold start rather than by long inputs? (If not: percentiles.)

If you failed one, the fix is a specific afternoon, not a degree, and the failure told you which afternoon. If you passed all four, you have your answer to the question this page is named after and can stop worrying about it. And if you found the questions themselves opaque — if it was not clear what was being asked — that is not a maths gap, it is a lack of exposure to the systems the questions describe, and it is closed by building one rather than by studying.

Nobody fails all four and nobody passes all four on the first day. The point of the diagnostic is that it converts an intimidating, unbounded question into a small number of specific, finishable gaps — which is the only form in which it has ever been answerable.

Do You Need a Maths Background to Work in AI? · Multigrid