# Underfitting

- **Canonical URL:** https://getaimath.com/dictionary/underfitting/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Underfitting?

**In one sentence:** Underfitting is when a model is too simple or not trained enough, so it fails to learn the pattern even on its training data.

Imagine trying to draw a curvy road using only one straight line. No matter where you put the line, it will not fit well. An underfit model is like that straight line: it is not flexible enough to capture what is really going on, so it does poorly everywhere.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Underfitting?

A model that guesses the same house price for every house, big or small, is underfitting.

## Why does Underfitting matter?

Good models sit between underfitting and overfitting, learning the real pattern and nothing extra.

## Underfitting vs. Overfitting

An overfitting model memorizes training quirks and stumbles on new data; an underfitting model is too simple or under-trained to capture the pattern even on training data.

| Dimension | Underfitting | [Overfitting](https://getaimath.com/dictionary/overfitting/) |
| --- | --- | --- |
| Training score | Poor | Very high (memorized) |
| Test / real-world score | Also poor | Drops sharply on unseen examples |
| Common fix | Bigger model, better features, longer training | More data, regularization, early stopping |

## Related Concepts

- [Overfitting](https://getaimath.com/dictionary/overfitting/): Overfitting is when a model learns its training examples too closely, including the noise, so it does badly on new data.
- [Model](https://getaimath.com/dictionary/model/): In AI, a model is the trained program that takes an input and produces an output, like an answer, a label or a picture.
- [Generalization](https://getaimath.com/dictionary/generalization/): Generalization is how well an AI model handles new examples it never saw during training.
- [Algorithm](https://getaimath.com/dictionary/algorithm/): An algorithm is a step-by-step set of instructions for solving a problem or doing a task.
- [Transfer Learning](https://getaimath.com/dictionary/transfer-learning/): Transfer learning means taking what a model learned on one task and reusing it to learn a new, related task faster.
- [Dataset](https://getaimath.com/dictionary/dataset/): A dataset is a collection of examples, like texts, pictures or numbers, used to train or test an AI model.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/underfitting/)
