# Calculate Margin %

**URL:** <https://community.hubspot.com/t/calculate-margin/57497>\
**Category:** CRM\
**Tags:** crm, object, reports, sales, enterprise\
**Created:** [May 23, 2022, 12:11pm UTC](https://community.hubspot.com/t/calculate-margin/57497 "2022-05-23T12:11:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edyta7510](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edyta7510/32/89259_2.png) [@Edyta7510](https://community.hubspot.com/u/Edyta7510)\
**Post date:** [May 23, 2022, 12:11pm UTC](https://community.hubspot.com/t/calculate-margin/57497/1 "2022-05-23T12:11:43Z")

</div>

Hi All,

I need to be able to visualize Margin% = Total contract value margin/ Total contract value

HubSpot doesn’t have this native property, from what I see it’s impossible to create calculated product properties, and at a deal level I cannot use product property in this calculation.

Any way to solve this?

Many thanks!

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [May 24, 2022, 8:47am UTC](https://community.hubspot.com/t/calculate-margin/57497/2 "2022-05-24T08:47:27Z")

</div>

Hi @Edyta7510

Thank you for reaching out.

I want to tag some of our experts here - @himanshurauthan @LaurenRyan @HubDoPete do you have any advice for @Edyta7510 on this?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [May 26, 2022, 4:48am UTC](https://community.hubspot.com/t/calculate-margin/57497/3 "2022-05-26T04:48:29Z")

</div>

Hello @Edyta7510,

I am afraid to say that currently, there is no straightforward workaround to do this. The reason is calculation property is not currently available for the product.

Regards,

---

<div class="post-metadata">

**Author:** ![Edyta7510](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edyta7510/32/89259_2.png) [@Edyta7510](https://community.hubspot.com/u/Edyta7510)\
**Post date:** [May 27, 2022, 8:24am UTC](https://community.hubspot.com/t/calculate-margin/57497/4 "2022-05-27T08:24:49Z")

</div>

Hi @himanshurauthan Many thanks for your input. This is what I thought was the case indeed. Would you know also why for deals in currencies other than the default company currency, the margin value from the line item doesn’t get converted? It’s only the revenue that gets converted (amount =\> amount in company currency), but margin stays in the original currency…

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [June 3, 2022, 8:14am UTC](https://community.hubspot.com/t/calculate-margin/57497/5 "2022-06-03T08:14:29Z")

</div>

Unfortunately @Edyta7510, this is a default functionality that cannot be changed.

---

<div class="post-metadata">

**Author:** ![Edyta7510](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edyta7510/32/89259_2.png) [@Edyta7510](https://community.hubspot.com/u/Edyta7510)\
**Post date:** [June 28, 2022, 12:03pm UTC](https://community.hubspot.com/t/calculate-margin/57497/6 "2022-06-28T12:03:17Z")

</div>

Hi @himanshurauthan I found a workaround to execute what I wanted using zapier.

All calculations are done at the deal level.

---

<div class="post-metadata">

**Author:** ![kvlschaefer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kvlschaefer/32/71076_2.png) [@kvlschaefer](https://community.hubspot.com/u/kvlschaefer)\
**Post date:** [June 28, 2022, 8:26pm UTC](https://community.hubspot.com/t/calculate-margin/57497/7 "2022-06-28T20:26:44Z")

</div>

Thanks for sharing this update with us, @Edyta7510!

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [June 29, 2022, 11:53am UTC](https://community.hubspot.com/t/calculate-margin/57497/8 "2022-06-29T11:53:23Z")

</div>

That’s great thank you for sharing! 🙂

---

<div class="post-metadata">

**Author:** ![MPastranaRios](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mpastranarios/32/13521_2.png) [@MPastranaRios](https://community.hubspot.com/u/MPastranaRios)\
**Post date:** [December 1, 2022, 4:03am UTC](https://community.hubspot.com/t/calculate-margin/57497/9 "2022-12-01T04:03:57Z")

</div>

@Edyta7510 how do you set this work around?

Do we know why hubspot won’t add the calculation function to products?

And if they already calculate margin from the product line items in quotes, why they can’t create a margin % as well?

---

<div class="post-metadata">

**Author:** ![MPastranaRios](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mpastranarios/32/13521_2.png) [@MPastranaRios](https://community.hubspot.com/u/MPastranaRios)\
**Post date:** [April 4, 2025, 7:44pm UTC](https://community.hubspot.com/t/calculate-margin/57497/10 "2025-04-04T19:44:25Z")

</div>

What did you end up doing in Zapier? What does your zap look like?

---

<div class="post-metadata">

**Author:** ![JDeSousaRocha](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@JDeSousaRocha](https://community.hubspot.com/u/JDeSousaRocha)\
**Post date:** [April 5, 2025, 9:15am UTC](https://community.hubspot.com/t/calculate-margin/57497/11 "2025-04-05T09:15:28Z")

</div>

I managed to do it in HubSpot with 2 calculated properties.

---

<div class="post-metadata">

**Author:** ![Soap49](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Soap49](https://community.hubspot.com/u/Soap49)\
**Post date:** [May 10, 2025, 1:01am UTC](https://community.hubspot.com/t/calculate-margin/57497/12 "2025-05-10T01:01:09Z")

</div>

Oh you can’t lead with that and not tell us how, haha! How’d you do it @JDeSousaRocha ?!

---

<div class="post-metadata">

**Author:** ![JDeSousaRocha](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@JDeSousaRocha](https://community.hubspot.com/u/JDeSousaRocha)\
**Post date:** [May 10, 2025, 8:42am UTC](https://community.hubspot.com/t/calculate-margin/57497/13 "2025-05-10T08:42:05Z")

</div>

I just followed someone else’s solution 😁  
Create a deal property to sum all the line item totals and another calculated property for the margin.  
The create a deal view with those columns selected.

---

<div class="post-metadata">

**Author:** ![esealpha](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@esealpha](https://community.hubspot.com/u/esealpha)\
**Post date:** [July 18, 2022, 4:42pm UTC](https://community.hubspot.com/t/calculate-margin/57497/14 "2022-07-18T16:42:15Z")

</div>

The Zapier connection is good to know. It’s quite annoying that HubSpot gives you the ability to calculate a field…but only on their terms.

---

<div class="post-metadata">

**Author:** ![McGhee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcghee/32/92018_2.png) [@McGhee](https://community.hubspot.com/u/McGhee)\
**Post date:** [October 12, 2022, 2:16pm UTC](https://community.hubspot.com/t/calculate-margin/57497/15 "2022-10-12T14:16:37Z")

</div>

We also need this as well as the ability to create a workflow so we can alert RevOps if the Margin % for a deal falls below a certain number.

---

<div class="post-metadata">

**Author:** ![McGhee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcghee/32/92018_2.png) [@McGhee](https://community.hubspot.com/u/McGhee)\
**Post date:** [October 12, 2022, 2:19pm UTC](https://community.hubspot.com/t/calculate-margin/57497/16 "2022-10-12T14:19:09Z")

</div>

If HubSpot could create TCV margin as an auto calculated deal property from Line Items, like TCV already is, this would make this easy for us to do.

---

<div class="post-metadata">

**Author:** ![Edyta7510](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edyta7510/32/89259_2.png) [@Edyta7510](https://community.hubspot.com/u/Edyta7510)\
**Post date:** [October 12, 2022, 2:21pm UTC](https://community.hubspot.com/t/calculate-margin/57497/17 "2022-10-12T14:21:19Z")

</div>

@McGhee of course! this would be really great. today by using my workaround with Zapier, I am limiting my team to apply the following rule: one deal = line item. which is not ideal…

---

<div class="post-metadata">

**Author:** ![McGhee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcghee/32/92018_2.png) [@McGhee](https://community.hubspot.com/u/McGhee)\
**Post date:** [July 12, 2023, 8:30pm UTC](https://community.hubspot.com/t/calculate-margin/57497/18 "2023-07-12T20:30:37Z")

</div>

Here’s what I did:

1. Created a Products property called Product Group and grouped like Line Items/Products
2. Created Deals proprerties Called (Group) TCV for each group
  1. Field type: Rollup
  2. Calculated property type: Sum
  3. Associated record type: Line Item
  4. Associated record property: Total contract value
  5. Condition: Product Group = (Group)

3. Created a second Deals property called (Group) TCV Margin where the Associated record proprerty is Total contract value margin instead of Total contract value
4. Created a third Deals proprerty called (Group) TCV Margin %
  1. Field type: Equation
  2. Calculated property type: Custom equation
  3. Equation: ((Group TCV Margin / Group TCV) \* 100)

5. Created a Workflow that sends an internal email to Operations if (Group) TCV Margin % falls below a certain number

---

<div class="post-metadata">

**Author:** ![JDeSousaRocha](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@JDeSousaRocha](https://community.hubspot.com/u/JDeSousaRocha)\
**Post date:** [July 14, 2023, 8:05am UTC](https://community.hubspot.com/t/calculate-margin/57497/19 "2023-07-14T08:05:29Z")

</div>

Hi @McGhee,

I am trying to replicate this but I cant find any of this terminology when creating the property.

Could you help?

---

<div class="post-metadata">

**Author:** ![McGhee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcghee/32/92018_2.png) [@McGhee](https://community.hubspot.com/u/McGhee)\
**Post date:** [July 14, 2023, 6:41pm UTC](https://community.hubspot.com/t/calculate-margin/57497/20 "2023-07-14T18:41:42Z")

</div>

Field type might be listed as calculation, not rollup. Then use sum for the calculation type and then select line itms and then TCV/TCV margin when building your deal properties.

[Next page](https://community.hubspot.com/t/calculate-margin/57497.md?page=2)
