Skip to main content

Calculation formula within variable input

  • July 13, 2023
  • 73 replies
  • 10285 views

Show first post

73 replies

ROB002
  • New Participant
  • November 11, 2024

This seems like a no brainer, not sure why Figma seems to be kicking the can down the road on this one. It was a missing feature from the get go and now that they have Responsive as an option in the viewer it seems even more so. Please Figma, bump up the priority on this one.


Jack_Reeves
  • New Participant
  • November 25, 2024

Tagging here to keep alive however after posting multiple requests over the last 5years that are all sensible - relatively easy features to add - only to get no response i feel like this forum is a waste of time.

  • still no background picture positioning to match css
  • still limited number of variables except enterprise
  • still no simple calculations on variables

All in favour of AI features no designer asked for.


Andri
  • November 27, 2024

I agree, the Figma team is slooooow when it comes to adding new things. One problem is that there is really not any competition. Sketch is way behind and doesn’t even have auto layout.

Figma could be so much better but for some reason they decided to build an enierly different product (FigJam) instead of making Figma more useful.


Lucian_Tudorache

+1 — I think everyone agrees that this is a must!


ViktorO
  • December 6, 2024

This is absolutely essential functionality. It would make the handoff to the devs much more intuitive. Combined with native JSON export it’d be golden.


+1
Could be very helpful


Randy_Chen
  • New Member
  • January 20, 2025

Still waiting for this feature to complete my design system!:)


Joachim_Pihlgren

+1
Totally agree, we can already do arithmetic in input fields, we just need to be able to do it with variables.


Laurentiu
  • New Member
  • February 1, 2025

THIS IS A MUST! reducing duplicate work and enabling modularity!!


Lea.P
  • New Participant
  • February 3, 2025

+1
… would be soooo helpful for design systems!


Josh_Gorman
  • New Member
  • February 6, 2025

I haven’t really used variables before in Figma, and was shocked that this wasn’t a feature already!

I am so used to parametric building in other applications that I stopped using the variables cause it just limited my need of them right there.

 

Please implement formulas in variable creation, and include the ability to pull property definitions like current frame height, width, etc.


Wael Bettayeb

Hello, I’ve could achieve it by creating an timeout component.
Here’s an example:

here’s the link:
https://www.figma.com/community/file/1472994351897468751


Ben_Gregory
  • New Member
  • April 2, 2025

I was expecting calculations when variables were first implemented, I’ve been constantly disapointed everytime I’ve checked only to see it’s still not. It would so useful for modular font-size scales, grid layouts, button padding on the x and y. I’m spending so much time making my tokens by manually entering values


raperez
  • New Member
  • April 5, 2025

So, are we getting this feature? We can't keep pretending REMs aren’t a thing, this is so needed in 2025


John_Fraskos

We definitely need this feature asap. It should not be so much complicated to implement, its a priority for a ton of users.


Travis_rea
  • New Member
  • May 13, 2025

Bummed that this is still not available. It makes scales a hassle. Rather than changing a scale multiplier and base integer in a variable I have to manually calculate everything…. still.  


Craig_Garner
  • New Participant
  • May 14, 2025

+1 this is a sorely lacking feature. Come on Figma, it can’t be that hard!


Martin_Schilde

^+1 sorely missed, this needs to be implemented. Just imagine putting down a variable matrix with a base font size for body text and then have all the headline sizes automatically be calculated from that according to another variable, like type scale factor:

factor = 1.2

p = 18 (px)

h6 = p × factor

h5 = p × factor²

h4 = p × factor³

etc etc

I would have one template with all the variables and I could kickstart all our projects. Please make this happen!


tjnz
  • New Member
  • May 29, 2025

+1

 

After just creating a boatload of spacing variables which could have been one calculation, this would be a relatively simple but hugely helpful addition.


Juan_Guzman
  • New Participant
  • June 24, 2025

+1 Waiting for this for 1 year


Maxwellll
  • New Member
  • July 3, 2025

For creating any kind of prototype with data generating from adjusting in-flow variables, we need this feature. Prototyping with variables in a kneecapped feature without Maths.

Even basic Maths, like addition, in the Variable browser or the text field itself.

 

We already have conditionals with operators, so I know the underlying logic has been considered, but Figma have yet to roll this piece of work out. I need it!!


Leo4411
  • New Member
  • December 11, 2025

Hey @A_Gussenberg, I just wanted to let you know that my new plugin Dynamic Variables does exactly what you’re looking for!
Here’s a quick video to show you how it works:

 

 

 

https://www.figma.com/community/plugin/1365339609215368041/dynamic-variables

@Josh_Mitchell your request is super close to this one, I posted video there too:

When creating variables, it would be really useful to be able to include maths and text when defining a variable, which are kept up-to-date based on current values. E.g. With a shopping basket, I have the following variable • Subtotal# (numeric) Into which I add the value of each product selected in the basket. From this value I would like to calculate • VAT# (numeric) = Subtotal * 20%, truncated to 2 decimal places And then display these variables in a currency • Subtotal£ (String) = “£…

Let me know if you have any questions!

Thanks for sharing, this looks perfect! I’ll try the Dynamic Variables plugin seems to do exactly what we need.


Elias Finn22
  • New Member
  • February 9, 2026

Hi,

 

I’ve found the most effective calculators are the ones that instantly reflect input changes without overcomplicating the interface. That’s why simple tools like https://easygradecalculators.com/ feel so practical  enter the numbers, get immediate results. Clean variable handling plus real-time output is what makes any calculator genuinely useful.