# Layer (Neural Network)

> One row of neurons. Data goes through each row in turn.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** Hidden Layer, Input Layer, Output Layer

## Think of it like

Think of it like one floor in a tall building. Each floor does its job, then sends the work up.

## Definition

A layer is one row of neurons in a neural network that work side by side. The input layer takes in the data, and the output layer gives the answer. The layers in between are called hidden layers. Each layer turns what it gets into something a bit more useful for the next. Early layers find simple things, like edges, and later ones find whole shapes.

## Example

Lucy's photo model has 20 layers. The first ones spot edges and colours. The middle ones spot eyes and wheels. The last one says cat or car.

## Why it matters

The number of layers is a big choice. More layers can learn harder things, but they need more data and more time.

## Common mistake

Thinking more layers always helps. Past a point, extra layers make training slow, and the model may just memorise.

## Three principles

- **A row of neurons.** They work side by side.
- **In, hidden, out.** Three kinds of layer.
- **Simple to complex.** Each builds on the last.

## Related terms

- [Neural Network](https://learn.benibix.com/term/ai/neural-network)
- [Artificial Neuron](https://learn.benibix.com/term/ai/artificial-neuron)
- [Deep Learning](https://learn.benibix.com/term/ai/deep-learning)
- [Convolutional Neural Network (CNN)](https://learn.benibix.com/term/ai/convolutional-neural-network)

## Taught in

- [Neural Network Basics](https://learn.benibix.com/learn/ai-machine-learning/neural-network-basics): Machine Learning, 13/18

![Circles in four columns joined by lines. The left column is the input layer, the two middle columns are hidden layers, and the right column is the output layer.](https://learn.benibix.com/diagrams/nn-network.svg)

---

Source: https://learn.benibix.com/term/ai/neural-network-layer
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
