﻿---
title: Unary operators
description: PromQL unary operators in Elasticsearch.
url: https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/query-languages/promql/operators/unary
products:
  - Elasticsearch
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Preview in 9.4
---

# Unary operators
The unary operator applies to a single instant vector or scalar.

## `-` (neg)

<applies-to>Elastic Stack: Preview in 9.4</applies-to>
Negates the instant vector or scalar by inverting the sign of each sample value.
**Operand**
<definitions>
  <definition term="v (instant_vector or scalar)">
    The value to negate.
  </definition>
</definitions>

**Returns**
The same type as the operand.
**Example**
```
-requests_total
```