25 November 2026 · 4 min readInteractive 3D
What does an artificial neuron do?
Multiply, add, squash. A neuron with two inputs draws a cliff across a floor. Tilt it, slide it and see why networks need many.
An artificial neuron is much simpler than its name suggests. It takes a few numbers in, multiplies each by a weight, adds them up with a bias, and passes the total through a squashing function. One number comes out.
Reading the picture
- The weights decide which way the cliff faces and how steep it is.
- The bias slides the cliff across the floor.
- The activation decides the cliff’s shape: an S-curve for sigmoid, a ramp for ReLU.
One neuron, one straight edge
However you set it, one neuron can only split the floor with a single straight line: high on one side, low on the other. That is enough to separate some things, but not most. Put many neurons side by side and stack those layers, and their cliffs combine into any shape you like. That is a neural network.
- Inputs: x₁ = 1, x₂ = 2
- Weights: 1.5 and −0.5, bias 0.2
- Sum: 1.5 × 1 − 0.5 × 2 + 0.2 = 0.7
- ReLU: 0.7 stays 0.7. Sigmoid: about 0.67
A worked example
A neuron decides whether to go outside, using two inputs: sunny (1 or 0) and homework done (1 or 0). Its weights are 2 for sunny and 3 for homework, its bias is −4, and it says yes if the total is above 0.
- Sunny, homework done: 2 + 3 − 4 = 1 → yes
- Sunny, homework not done: 2 + 0 − 4 = −2 → no
- Rainy, homework done: 0 + 3 − 4 = −1 → no
- The neuron has learned “only if both are true”, an AND gate
Change the bias to −1 and it says yes if either input is 1: an OR gate. The weights say how much each input matters and the bias sets how easily it says yes.
Why one neuron is limited
One neuron draws one straight boundary between yes and no. Some patterns, like “exactly one of the two inputs is on” (XOR), cannot be separated by any single straight line. Two layers of neurons can do it, which is the whole reason networks have layers.
Learning the weights
Training starts with random weights. For each example, the neuron’s answer is compared with the right one, and each weight is nudged in the direction that reduces the error, by an amount proportional to its input. Repeat over many examples and the weights settle.
A modern network has billions of these simple units. Each one is just a weighted sum, a bias and a bend.
From one neuron to a network
Put several neurons side by side and you have a layer; each looks at the same inputs with different weights. Stack layers and the outputs of one become the inputs of the next. A network that recognises handwritten digits might use 784 inputs (one per pixel), a hidden layer of 128 neurons and 10 outputs, one per digit.
Glossary
- Weight: how much an input counts.
- Bias: a shift that sets how easily the neuron fires.
- Activation function: the bend applied to the total.
- Layer: a group of neurons working side by side.
Try these yourself
- Q1. Inputs 1 and 2, weights 0.5 and 1, bias −1: 0.5 + 2 − 1 = 1.5
- Q2. Same with ReLU: 1.5. With total −1.5? 0
- Q3. Weights 1 and 1, bias −1.5: which gate? AND
- Q4. Can one neuron do XOR? No
Brain neurons and computer neurons
Artificial neurons were inspired by brain cells, which fire when their inputs pass a threshold. The similarity ends there: real neurons are far more complex, and the brain learns in ways scientists are still discovering.
In short
A neuron is a weighted sum, a bias and an activation. Learning adjusts the weights; layers of neurons solve what one alone cannot.
Keep going
Questions people ask
What does a neuron in a neural network do?
It multiplies each input by a weight, adds them up with a bias, and passes the total through an activation function.
What is a bias in a neuron?
A number added to the weighted sum that shifts how easily the neuron switches on, like a threshold.
Can one neuron solve any problem?
No. A single neuron can only separate data with one straight line or plane; harder problems need layers of neurons.