# \tilde

Used to place a tilde accent over variables, operators, or grouped expressions.

https://texform.dev/latex/commands/tilde

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Accents](https://texform.dev/latex/topics/accents) |
| Packages | base |
| Allowed mode | math |
| Tags | decoration |
| Commonality | high |
| Kind | prefix |

## Syntax

### base

Argument specification: `m`

Used to place a tilde accent over variables, operators, or grouped expressions.

## Common tasks

### How to put a tilde on a variable

```latex
\tilde{x}
```

[Open in Playground](https://play.texform.dev/?input=%5Ctilde%7Bx%7D)

### How to write an approximate or dual variable

```latex
\tilde{f}(\xi)
```

[Open in Playground](https://play.texform.dev/?input=%5Ctilde%7Bf%7D%28%5Cxi%29)

### How to tilde a longer symbol

\tilde is for one character; \widetilde stretches.

```latex
\widetilde{AB}
```

[Open in Playground](https://play.texform.dev/?input=%5Cwidetilde%7BAB%7D)

## Examples

```latex
\tilde{n}
```

[Open in Playground](https://play.texform.dev/?input=%5Ctilde%7Bn%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| base | full | full | full |

## Usage frequency

4.74% of formulas in the measured corpus contain this entry, rank 12 of 263 entries with frequency data.

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

## See also

- [\\acute](https://texform.dev/latex/commands/acute)
- [\\bar](https://texform.dev/latex/commands/bar)
- [\\breve](https://texform.dev/latex/commands/breve)
- [\\check](https://texform.dev/latex/commands/check)
- [\\ddddot](https://texform.dev/latex/commands/ddddot)
- [\\dddot](https://texform.dev/latex/commands/dddot)
- [\\ddot](https://texform.dev/latex/commands/ddot)
- [\\dot](https://texform.dev/latex/commands/dot)
- [\\grave](https://texform.dev/latex/commands/grave)
- [\\hat](https://texform.dev/latex/commands/hat)
- [\\mathring](https://texform.dev/latex/commands/mathring)
- [\\vec](https://texform.dev/latex/commands/vec)
- [\\widehat](https://texform.dev/latex/commands/widehat)
- [\\widetilde](https://texform.dev/latex/commands/widetilde)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \tilde{a} | Positive: baseline | Pass | Pass | Pass |
| \tilde a | Positive: bare[0] | Pass | Pass | Pass |
