> ## Documentation Index
> Fetch the complete documentation index at: https://oculon.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create and edit variables

> Create variables in a model, then rename, retype, and reorder them as the model grows.

You create variables inside the model section where they belong. Most teams add a first draft quickly, then refine names, types, and order as the model settles.

## Create a variable

![Search or create a variable box open in a model section, with a Create New Variable option and a Recent list of variables from other places, such as Amount, Transaction Date, and Transaction ID from Private space / Revenue-Greenfield, IsSubscriber from Private space / Users, and FinancialYearEndDay from Private space / Organisation.](https://mintcdn.com/oculon/1JWHwlExES5W7YSl/images/start-here/variable-create.png?fit=max\&auto=format\&n=1JWHwlExES5W7YSl\&q=85\&s=f301a5ad7aac690d2bed990626d10c23)

Creating or adding a variable

1. Click **+ Add Variable** at the bottom of a section.
2. Type a name in **Search or create a variable**.
3. Select **Create** followed by your name to add a new variable.

The new variable starts empty. You can then enter values or write a formula.

The same search also finds existing variables in other models, Transactions, and dimensions. Before you type, the list shows **Recent** variables and where each one lives, such as `Private space / Revenue-Greenfield`. Select one to bring it into this model instead of rebuilding it. See [Variable references](https://oculon.mintlify.site/concepts/data-and-structure/variables/variable-references.md).

## Edit a variable

You can change a variable's name, type, formatting, formulas, and breakdown after you create it.

* To change the type or formatting, click the type icon next to the variable name. See [Variable types](https://oculon.mintlify.site/concepts/data-and-structure/variables/variable-types.md) and [Variable formatting](https://oculon.mintlify.site/concepts/data-and-structure/variables/variable-formatting.md).
* To change the breakdown, use the dimension control next to the variable name. See [Variable breakdown](https://oculon.mintlify.site/concepts/data-and-structure/variables/variable-breakdown.md).
* To change the calculation, edit the actual formula or planned formula. See [Formula editor](https://oculon.mintlify.site/concepts/modeling/formulas/formula-editor.md).

Before you change a variable that other formulas or boards use, check what depends on it.

## Reorder variables

![Revenue Calculations section with the drag handle shown next to the Churned ARR row and a tooltip that reads Drag to move, Click to open menu.](https://mintcdn.com/oculon/1JWHwlExES5W7YSl/images/start-here/variable-reorder.png?fit=max\&auto=format\&n=1JWHwlExES5W7YSl\&q=85\&s=09896cee096c51c6dee93185428b82b3)

The drag handle on a variable row

Hover a variable row to show its drag handle. Drag the handle to move the variable to another position in the same section or to a different section. Click the handle to open the row menu.

## Organize as you go

Group variables into sections by role. For example, keep inputs, drivers, calculations, and outputs in separate sections. A consistent order makes the model easier to scan and review.

Prefer stable business names over temporary labels. Collaborators search for variables by name, so frequent renames make them harder to find.

## Related

* [What is a variable](https://oculon.mintlify.site/concepts/data-and-structure/variables/overview.md)
* [Model structure](https://oculon.mintlify.site/concepts/modeling/models/model-structure.md)
* [Variable best practices](https://oculon.mintlify.site/concepts/data-and-structure/variables/variable-best-practices.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.