Back to Blog
HubSpotRevOpsCRM

HubSpot calculation properties: a RevOps guide to formulas and rollups

Abhishek Singla Nov 26, 2026 12 min read
The short answer

HubSpot calculation properties fill themselves from other values on the same record, using a custom equation or the time between, since or until a date. Rollup properties do the same across associated records, as a sum, count, average, min, max, earliest date or latest date. Both need a Professional or Enterprise subscription. Use them for values that reports and workflows depend on, and guard every formula against empty inputs.

HubSpot calculation properties let a record work out a value from its own fields, so reports and workflows read a number nobody has to type. In a CRM and RevOps build, the fields worth calculating are the ones the forecast, lists and sales views depend on, and the rest stay with the people who own the record. HubSpot rollup properties do the same for values that live on associated records.

Cover for the HubSpot calculation properties guide: pick the calculation type, then write a formula that handles blank inputs.

What calculation and rollup properties are, and which one you need

A calculation property writes itself from other properties on the same record. A rollup property writes itself from associated records. Both are often called calculated properties. Pick the type with care: after creation you can change which dates a time between, time since or time until property reads, but not which of the three types it is (HubSpot's calculation and rollup properties guide).

If you needUse
A value from fields on the same recordCustom equation
Days between two dates on the same recordTime between
How long since a date, or until a dateTime since, or time until
A sum, count, average, min, max, or an earliest or latest date across associated recordsRollup
Time spent in a pipeline stageStage calculated properties

Time in a stage, and the date a record entered that stage, are stage calculated properties. The workflow that treats a quiet deal as stalled is in the stalled deals guide.

A fit and engagement score on the contact belongs in the lead scoring guide. A score on the open deal belongs in the deal scoring guide.

You need Marketing Hub, Sales Hub, Service Hub, Content Hub, Smart CRM or Revenue Hub at Professional or Enterprise, or Data Hub Professional. How many you can create depends on the subscription, and HubSpot's guide points to its subscription limits page for the detail (HubSpot's calculation and rollup properties guide). Check the limit before you plan a large set.

Before you build: plan check and the questions to answer

Answer these before you click Create property.

  1. Who reads the value: a report, a workflow, a list, or a sales view. If none of them do, skip it.
  2. Which object holds it. A custom equation uses properties of that same object only.
  3. The output type: Number, Boolean, String, Date, Date Time or Enumeration. It has to match the type the editor shows.
  4. What an empty input should do. An empty number stops the equation.
  5. A label and description that state the unit, such as "Days to close (days)".

The label can change later. The internal name is fixed at creation. Naming, groups and the quarterly pass sit in the property cleanup guide. Put the inputs, the unit and the blank behaviour in the description.

If the object you want to roll up still has to be created, settle that in the custom objects guide first. Which chart should read the property is covered in the dashboard guide.

How to create a calculation property

The click path, in full, is in HubSpot's calculation and rollup properties guide. The sequence is:

  1. Settings, then Properties. Choose the object, then Create property.
  2. Set the label, the internal name and the description.
  3. Field type: Calculation.
  4. Calculated property type: Custom equation, Time between, Time since, or Time until.
  5. For a custom equation, set the output type so it matches the editor, build the formula, then click Test formula.
  6. Create the property.

Time between takes a start date and an end date on the same object, and Exclude weekends counts weekdays only, with weekends running from 12:00 am Saturday to 11:59 pm Sunday in the account time zone. Time since counts up to today, and time until counts from today (HubSpot's calculation and rollup properties guide).

Generate formula asks HubSpot's data agent for a draft. Match the output type, run Test formula, and add the empty-input guard yourself.

In a HubSpot custom equation, you can nest up to 70 open parentheses. Property tokens look like [properties.amount]. Enumeration values use the option internal name in double quotes, as in "appointmentscheduled". Date properties are UTC midnight in milliseconds. Date time values are UTC epoch milliseconds (HubSpot's calculation and rollup properties guide).

How to create a rollup property

A rollup lives on one record and reads one property on associated records. Field type: Rollup, then Min, Max, Count, Sum, Average, Earliest date or Latest date. Choose the associated object, the property, and any association labels, including same-object labels. You can add up to 50 conditions on number and enumeration properties. Each condition compares a property to a number or to another property. Emails cannot be the source (HubSpot's calculation and rollup properties guide).

Count includes associated records that have a value for the number property you picked. A count of deals on Amount skips a blank amount.

Put a Sum of deal Amount on the company where Deal probability is at least 80, the condition HubSpot's guide uses. Replace 80 with your forecast floor, and add an association label when only one relationship should count. Latest date on the associated close date returns the newest close date. Earliest date returns the oldest.

HubSpot sets Deal probability from each stage's win probability. A manual edit, including a bulk edit, an import, a data sync or an API write, stops those open-stage updates, and only a move to a closed won stage (100%) or a closed lost stage (0%) sets it again (HubSpot's default deal properties). A closed won deal sits at 100% and passes an 80 floor, so add a condition on Deal stage if the rollup should count open pipeline only. Test a closed won deal, a closed lost deal and a hand-edited probability before a report filters on the rollup.

On a deal, a currency number format uses the account's company currency unless you tick Use record currency. The tick changes the symbol on screen and does not apply an exchange rate (HubSpot's calculation and rollup properties guide).

Formulas RevOps teams actually use

These HubSpot calculation property formulas use the default internal names amount, closedate, createdate and dealstage from HubSpot's own examples, and every function in them is in the function reference of HubSpot's calculation and rollup properties guide. Swap in your own internal names for custom fields.

Empty-safe amount

Why. A blank amount stops any equation that uses it. This sets it to 0 instead.

Formula.

if(
  is_known([properties.amount]),
  [properties.amount],
  0
)

Gotcha. Output type Number. This is the if and is_known guard HubSpot documents for an empty number (HubSpot's calculation and rollup properties guide). Point every other amount formula at this property.

Days to close as whole days

Why. A filter on cycle time needs whole days. The raw difference is milliseconds.

Formula.

round_nearest(
  (
    [properties.closedate]
    - [properties.createdate]
  ) / 86400000,
  0
)

Gotcha. 86,400,000 is 1,000 by 60 by 60 by 24, one day in milliseconds. HubSpot's fixed-day example divides by those same four numbers in turn. A close date before the create date gives a negative number. Time between with Duration format is the no-code path, and the one that can exclude weekends (HubSpot's calculation and rollup properties guide). Cycle time inside the velocity math is in the sales velocity guide.

Deal size band

Why. A band is easier to filter than a raw amount, once the cutoffs are yours.

Formula.

ifs(
  [properties.amount] > 5000,
  "High",
  [properties.amount] > 200,
  "Medium",
  [properties.amount] > 0,
  "Low"
)

Gotcha. Replace HubSpot's sample cutoffs, and keep the highest band first. Output type String, or Enumeration when the quoted values are option internal names. An empty amount stays empty, so read the guarded amount if every deal needs a band.

Amount pinned to a dated rate

Why. Multi-currency portals already store Amount in company currency from the account's exchange rates, and that value updates until the deal is closed won or closed lost (HubSpot's default deal properties). Use an equation when the rate should be the one on a specific date.

Formula.

[properties.amount]
* dated_exchange_rate(
  "EUR",
  [properties.closedate]
)

Gotcha. Currency code first, then the date, as in dated_exchange_rate("USD", [properties.closedate]). HubSpot's currency example multiplies Amount by exchange_rate('CAD'). Replace EUR with your currency code, and check one sample deal to confirm the result runs in the direction you expect. The record-currency tick only changes the symbol (HubSpot's calculation and rollup properties guide).

Data completeness flag

Why. A boolean the forecast can filter, true when the fields behind the number are filled.

Formula.

is_known([properties.amount])
&& is_known(
  [properties.closedate]
)
&& is_known(
  [properties.dealstage]
)

Gotcha. Output type Boolean, and && is HubSpot's documented and operator. Swap in the fields your forecast reads. Test a deal with an amount of 0 to see how the flag treats it, and add [properties.amount] > 0 if zero-value deals should fail the check (HubSpot's calculation and rollup properties guide).

A date fallback with coalesce

Why. One date column for a view: close date when it exists, otherwise create date.

Formula.

coalesce(
  [properties.closedate],
  [properties.createdate]
)

Gotcha. Set the output type to match what the editor shows. coalesce returns the first value that exists, from up to 100 inputs. Do not use it to turn an empty number into 0: an empty number property stops the whole equation, and numbers need the if and is_known guard (HubSpot's calculation and rollup properties guide).

Mistakes that break reports and workflows

Filtering for zero when the property is empty. An empty number input stops the equation even when the formula adds a constant, and the result stays blank. A report filter for 0 will not catch it, because blank and 0 are different values. Point the filter at the guarded property (HubSpot's calculation and rollup properties guide).

Reading milliseconds as days. Duration, time between and average raw values are stored in milliseconds. Duration format changes the label on the record: seconds under 2.5 minutes, minutes from 2.5 minutes, hours from 2.5 hours, days from 1 day, months from 3 months and years from 2.5 years. Another formula still receives milliseconds (HubSpot's calculation and rollup properties guide).

Using time since or time until where HubSpot does not support them. They cannot be used as filters in the custom report builder, as inputs to calculation and rollup properties, or in custom data sync field mappings (HubSpot's calculation and rollup properties guide). Build the span as time between, or from the date properties inside the equation that needs it.

Treating the currency tick as a conversion. Use record currency changes the symbol only. Multiply by exchange_rate or dated_exchange_rate when the number has to move. If finance already trusts the account rate, use Amount in company currency.

Editing a formula a workflow already filters on. The filter stays and the meaning changes under it. Check the usage export, and update the description, before you save. The export steps are in the property cleanup guide.

Building a field nothing reads. Each one can go empty and counts toward the subscription limit. Create it only when a report, workflow, list or sales view will read it.

Test and govern calculated fields

Test formula shows the output before you create the property. Check a filled record, a blank number, and a record on an ifs boundary. For a rollup, include a parent with no associations and one whose amount is blank.

On Enterprise, change a property the forecast, a commission file or a board report already filters on in a standard sandbox first. The sandbox guide covers what copies across and how Deploy to Production works. Read the connected assets so the deploy does not push a workflow you left off the plan.

Give every calculated property one owner and a description that states the unit, the inputs and the blank behaviour. In the quarterly cleanup, archive a calculated field whose usage export is empty, after you export its values.

When to bring in help

Most teams can build a days-to-close field, a band and a rollup of amount with the editor and Test formula.

Outside help pays off when the field feeds the forecast, a commission file or a board number, and when you are rebuilding properties on a move into HubSpot. Create the source properties first, then the equations, and enroll workflows only after Test formula matches a sample you worked by hand. That move is HubSpot migration work, and the CRM design around it is CRM and RevOps.

A total that spans HubSpot and a billing system, or records with no association between them, is a job for an n8n workflow that writes the result back to HubSpot.

FAQ

Which HubSpot plans include calculation properties?

They are included with Marketing Hub, Sales Hub, Service Hub, Content Hub, Smart CRM and Revenue Hub at Professional or Enterprise, and with Data Hub Professional. How many you can create depends on the subscription (HubSpot's calculation and rollup properties guide), and the Account & Billing page in your portal shows your limits. Subscription cost is in the HubSpot pricing guide.

Why is my HubSpot calculation property empty?

An empty number property stops the equation, even when a constant is in the formula, and the value stays empty. Guard it with if and is_known. Separately, HubSpot does not support time since or time until in custom report builder filters, so a report filtered on one will not work as expected. Use Test formula to preview the output before you blame the report (HubSpot's calculation and rollup properties guide).

What is the difference between a calculation and a rollup property?

A calculation property reads the same record, through a custom equation or through time between, time since or time until. A rollup reads associated records and returns min, max, count, sum, average, earliest date or latest date. Count includes records that have a value for the number property you picked. Emails cannot be the source (HubSpot's calculation and rollup properties guide).

Can a calculation property use properties from associated records?

A custom equation reads properties on the same object only. Create a rollup for the associated value, then use that rollup in the equation. Time since and time until cannot feed another calculation or rollup. Build that span from the date properties inside the formula that needs it (HubSpot's calculation and rollup properties guide).

Why does my duration show a huge number?

Duration, time between and average raw values are stored in milliseconds, and a date property is UTC midnight in milliseconds. Duration format shows a unit on the record. The huge figure is the raw value, which is what other formulas receive. Divide by 86,400,000 and round for whole days (HubSpot's calculation and rollup properties guide).

If you want a written second opinion on the calculated fields and the reports your team relies on, we can review the formulas and the filters that read them.

Talk to us