Take GravityMath for a spin!

Ever needed to total donations across submissions, average a survey score, or show a customer their own invoice math? GravityMath runs live calculations on your Gravity Forms entries and displays the result anywhere on your site — no spreadsheet, no export. Every number below is computed on the fly from a company-data form. Add a company using the form and watch them all update.

Rank and summarize

Which industries lead on revenue?

The Summary block groups entries by any field and does the math per group — here, industries ranked by their average revenue.

Industry Average revenue (billions)
Hardware 45
Technology 44
Finance 21
Cybersecurity 16

Average a field

What’s the average revenue across every company?

One shortcode averages a number field across all entries in the form:

Output: $26 billion

View calculation shortcode
[gravitymath scope="form" id="2"]
    round({Revenue:2:avg},0)
[/gravitymath]

Sum a field

What do operating costs add up to?

Swap avg for sum and the same approach totals a field — think donations raised, hours logged, or seats booked:

Output: $1,835 billion

View calculation shortcode
[gravitymath scope="form" id="2"]
    round({Operating Expenses:3:sum}, 0)
[/gravitymath]

One entry’s numbers

How is a single company doing?

Point a calculation at one entry to show its numbers — here, revenue minus operating expenses for Apple, Inc.:

Output: $328.96 billion

View calculation shortcode
[gravitymath scope="entry" id="12"]
    {Revenue:2} - {Operating Expenses:3}
[/gravitymath]

Filtered math

Which companies are growing fastest?

Filters limit the math to entries that match a condition — here, average growth among companies growing more than 5% a year:

Output: 29%

View calculation shortcode
[gravitymath scope="form" id="2" filter_5="5" op_5="greater_than"]
    round({Revenue growth:5:avg}, 0)
[/gravitymath]

Combine fields

What’s Nvidia’s operating margin?

Formulas can combine any of an entry’s fields — divide, multiply, round — like operating income ÷ revenue:

Output: 60%

View calculation shortcode
[gravitymath scope="entry" id="11"]
    round({Operating income:4} / {Revenue:2} * 100, 0)
[/gravitymath]

Try it: add a company.

Submit the form and every calculation on this page updates instantly.

Please enter a number from 1 to 50.
Please enter a number from 1 to 50.
Please enter a number from 1 to 50.
Please enter a number from 0 to 100.

Ready to get started?

You’re viewing a live GravityMath example. Launch my free GravityMath demo → Terms