Custom Variables

Save a value once and insert it into any field from the icon at its right end, instead of typing it again.

Key Benefits

Store constants you use all the time — a tax rate, an inflation assumption, your hourly rate.

Insert the same value into any field from its variable icon, so every scenario uses the same assumption.

Change a value once, and the next calculation you insert it into uses the new figure.

Bulk-import variables from a CSV file when you have many to set up (free account).

Say what a number is measured in — kΩ, $/mo, kcal — so a saved figure still means something months later.

How It Works

1

Open the Variables tab in the right-hand panel and click Create.

2

Give each variable a clear name (like tax_rate) and a value — a number, a date, text or JSON.

3

Click into an input field, then the variable icon at its right end, to insert a stored value.

4

Give a numeric variable its unit from the list beside the value — it is optional, and searching the list by word works as well as by symbol, so "resist" finds kΩ and "month" finds $/mo.

5

Global search shows a variable’s unit beside its value and finds it by that unit, by symbol or by word — "kg" and "kilograms" both work, and "ohm" finds a value saved in kΩ.

6

Create one straight from a field that holds a number, and the form opens with that number already in it, and its unit where the field has one.

7

You can also create one from global search: type >var rate = 5 and press Enter.

8

In the Token Converter, Snippets beside a text box saves its text as a variable and inserts a saved text or JSON variable where the cursor is.

In the User Guide: Custom Variables

Save Your First Variable

Open CalcTrail, then open the Variables tab in the right-hand panel.

Open CalcTrail

Frequently Asked Questions

Are variables global or workspace-specific?
Variables are global to your profile, so a value like tax_rate stays available no matter which workspace you are working in.
Can I import variables in bulk?
Yes. With a free account, use the Import button in the Variables panel to load many variables at once from a CSV file.
How do I use a variable inside a calculator?
Input fields that support variables show a small variable icon. Click it, pick your variable, and its current value is inserted into the field.
How many variables can I create?
Guests can create up to 25 variables; a free account raises the limit to 100.
What is the unit for, and do I have to set one?
It is optional, and it lets a number explain itself later: "0.08" could be a tax rate or a resistance; "0.08 — percent" cannot. Units come from a fixed list rather than a free-text box, so one unit is not typed three ways ("kohm", "k ohm", "kilo-ohms"), and each entry carries the symbol and the words, so you can find one without knowing the other. When you insert the variable, a field with a unit switch is set to match, and a field measured in a different unit shows a warning. Units are offered on numeric variables only — "kg" beside a date or a piece of text would say nothing.
What happens to a variable I saved before units existed?
Nothing. It keeps working exactly as it did, with no unit, and you can add one whenever you next edit it. If a variable somehow holds a unit the list does not recognize, that unit is kept and shown as saved rather than being quietly dropped.
Should I save a value as a variable, or pull it from another tab?
Pull it from the tab for a one-off: if the number you need is already on screen in another open calculator, the field panel can insert it directly. Save a variable for a number you will reuse across sessions and workspaces, like a tax rate or an hourly rate. You can do both in two steps: insert the value, then create a variable from the field, which opens with that number already filled in.
If I change a variable later, do old calculations update too?
No. Inserting a variable copies its current value into that field — it is not a live link. Changing the variable afterward only affects the next time you insert it; fields you already filled in keep the number they got at the time.