﻿---
title: Math operators
description: Perform mathematical operations affecting one or two values. The result is a value of numeric type. 
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/query-languages/sql/sql-operators-math
products:
  - Elasticsearch
---

# Math operators
Perform mathematical operations affecting one or two values. The result is a value of numeric type.

## `Add (+)`

```sql
SELECT 1 + 1 AS x;
```


## `Subtract (infix -)`

```sql
SELECT 1 - 1 AS x;
```


## `Negate (unary -)`

```sql
SELECT - 1 AS x;
```


## `Multiply (*)`

```sql
SELECT 2 * 3 AS x;
```


## `Divide (/)`

```sql
SELECT 6 / 3 AS x;
```


## `Modulo or Remainder(%)`

```sql
SELECT 5 % 2 AS x;
```