MARKETPLACE
PLUGINS
MATH EXPRESSION FORMULA CALCULATOR
Math Expression Formula Calculator logo

Math Expression Formula Calculator

Published September 2021
   •    Updated today

Plugin details

Evaluate simple or complex math expressions with dynamic values and get the result as number and text.
This plugin was created to relieve some of the restrictions that Bubble's property editor's math evaluator has.

It will help you do complex mathematical calculations that you can use to enhance results of your dynamic data evaluations and data to display in your Bubble App.

This should get rid of the trouble doing complex calculations with BODMAS in Bubble and make ecommerce, payments and analytics app development easier.

Hope this helps you build something great!

Free

For everyone

4.0 stars   •   10 ratings
6.5K installs
This plugin does not collect or track your personal data.

Other actions

Platform

Web

Contributor details

Blur Apps logo
Blur Apps
Joined 2021   •   19 Plugins
View contributor profile

Instructions

To use this plugin, follow these steps:
1. In the Editor, find the 'Math Calculator' element in your Visual Elements and add it to your Bubble App

2. In the properties of this element, assign the input Expression by building a text in the form of a mathematical expression.
This expression can include operators like +, -, /, *, ( ) brackets and more.
The expression can also include data from dynamic sources. For example, "1+(Do a Search for Users:count *3)" is a valid expression and will take the value of the Bubble dynamic data and calculate with it.

3. Now you can make use of the results of this calculation in an element for displaying or calculations.
For example, WHEN "MathCalculator A's Number Result > 3" is a valid expression for any element's conditional properties.
And "3*MathCalculator A's Number Result" is a valid expression for displaying visual elements like Text, Buttons, etc.

______

FOR LOGICAL / CONDITION OPERATIONS:
> For boolean expressions involving dynamic data of type "yes/no", use the ':formatted as number' option to convert the "yes/no" value to a 1/0 value that you can operate on. Direct support for "yes/no" values is coming soon.

______
VALID OPERATORS:
1) * : multiplication
2) / : division
3) + : addition
4) - : subtraction
5) ** : exponential (A raised to power B is "A**B")
6) | : Bitwise OR
7) & : Bitwise AND
8) ^ : Bitwise EXOR
9) ~ : Bitwise NOT (Also flips the sign: positive <-> negative)
10) || : Boolean OR
11) && : Boolean AND
12) % : Modulus (remainder of division)

Types

This plugin can be found under the following types:
Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:
Analytics   •   Ecommerce   •   Payment   •   Technical   •   Productivity   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

Average rating (4.0)

Excellent plugin!
August 21st, 2025
It does exactly what it says on the box. It also can be used for a lot of other nifty things. I would gladly pay for this plugin. The only thing it's lacking is that it would be handy to be able to hide it in the design editor while still being active.
Works great! 💯
October 10th, 2024
Hey Ranjit! Eny here! 😉. This plugin works like a charm! Thanks!
Exactly what I needed
September 15th, 2024
I'm building a commission calculator in which the math isn't incredibly complicated (3 to 10 numerical user inputs), but Bubble's UX for creating equations is frustrating once your get past 3 sets of parenthesis (yes, I have the beta enabled). This plug-in allows me to break-out the math into separate elements on the page, but not displayed to the user, or saved to the database.
Bug all fixed
January 5th, 2024
I figured out I was doing something wrong, it is working perfect now!
Cheers! The plugin calculation results in a -1 if there is an error or missing data anywhere in the formula since it first parses and then executes. (plugin author)
January 5th, 2024
  •  
Blur Apps
Works Perfectly
December 2nd, 2023
First let me say that I am in no way a coder. I have been using wix since 2007. I have a little experience with corvid (velo) but not much. I only came to bubble because wix recently removed the billing/invoices databases from all of their sites. They're assholes. I am not sure why people are having a hard time with this plugin. I installed it, told it what field I wanted it to grab and what I wanted the plugin to do with that data. For me I'm just converting minutes into hours and minutes for service duration. It took all of 30 seconds to set up and it works perfectly. I spent roughly 2 hours trying to figure out Math.js and the toolbox. Great job Blur. Thank you
🥹 so glad to be able to help you. I'll be happy to support you if you need anything at all! (plugin author)
December 4th, 2023
  •  
Blur Apps
Bubble