An x in parentheses, for variables, formula fields and placeholders in an expression. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M8 2C5.4322 4.6962 4 8.2767 4 12C4 15.7233 5.4322 19.3038 8 22M16 2C18.5678 4.6962 20 8.2767 20 12C20 15.7233 18.5678 19.3038 16 22M9 9L15 15M15 9L9 15"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- x
- variable
- math
- algebra
- formula
- function
- parameter
- code
- programming
Related icons
The rest of the variable family first, then the Math shelf.
FAQ
Answered from variable's own facts: its shelf, the weights it was drawn in, its siblings and its dates.
- What is the variable icon for?
- An x in parentheses, for variables, formula fields and placeholders in an expression. It is filed under Math in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as x, variable, math, algebra, formula, function, parameter, code and programming, and the browser's search matches all of those.
- What styles does the variable icon come in?
- All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
- Is there a square or circle version of variable?
- No. variable is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with variable?
- asterisk, circle-asterisk, circle-divide, circle-equal, circle-radical and divide, and 12 more, all shown below. They are the Math shelf: nothing else in the set is named after variable.
- How do I import variable in React?
- <Variable /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Variable size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the variable SVG?
- icons/stroke/variable.svg, icons/two-tone/variable.svg, icons/duotone/variable.svg and icons/fill/variable.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was variable added to the set?
- Added 22 Sept 2026. It ships in v1.1.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.