# Arithmetic Operator

> A sign that does maths with numbers: +, -, *, / and more, like %.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** Math Operator

## Think of it like

Think of it like doing sums on paper. The computer just does them fast.

## Definition

An arithmetic operator does maths with numbers. The main ones are + for add, - for take away, * for times and / for divide. Most languages add % for the remainder, and Python adds ** for powers. The result is a new number. Times and divide run before plus and minus.

## Example

A shop splits 7 sweets between 3 children. 7 // 3 gives 2 each, and 7 % 3 says 1 is left over.

## Example code

```python
>>> 7 % 3
1
>>> 2 ** 3
8
>>> 7 / 2
3.5
```

Remainder, power and a plain divide, each on its own line.

## Why it matters

Totals, prices, scores and sizes are all worked out with these. They are the first operators anyone learns.

## Common mistake

Using * for powers. In Python 2 * 3 is 6, but 2 ** 3 is 8.

## Three principles

- **Numbers in, number out.** Each one makes a new number.
- **Remainder is %.** It gives what is left after dividing.
- **Times before plus.** Use brackets to change the order.

## Related terms

- [Operator](https://learn.benibix.com/term/development/operator)
- [Integer](https://learn.benibix.com/term/development/integer)
- [Floating-Point Number](https://learn.benibix.com/term/development/floating-point-number)
- [Expression](https://learn.benibix.com/term/development/expression)

## Taught in

- [Operators in Python](https://learn.benibix.com/learn/development-concepts/operators-in-python): Programming Basics, 9/18

---

Source: https://learn.benibix.com/term/development/arithmetic-operator
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-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
