# Creating a discount percentage for each product

**URL:** <https://forum.mergado.com/t/creating-a-discount-percentage-for-each-product/1069>\
**Category:** Feed Image Editor\
**Created:** [September 25, 2024, 10:06am UTC](https://forum.mergado.com/t/creating-a-discount-percentage-for-each-product/1069 "2024-09-25T10:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnews](https://forum.mergado.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mnews](https://forum.mergado.com/u/mnews)\
**Post date:** [September 25, 2024, 10:06am UTC](https://forum.mergado.com/t/creating-a-discount-percentage-for-each-product/1069/1 "2024-09-25T10:06:27Z")

</div>

I want to add % discount for each product individually. Is there some automatic element that does this? Or do I need to create a complex rule to calculate this percentage?

P.S. I have already tried to create a rule to calculate the discount percentage and got an error. If it is necessary to create a rule for this purpose, I will be glad if you share the correct formula for calculating the discount percentage.

---

<div class="post-metadata">

**Author:** ![marekdanko](https://forum.mergado.com/user_avatar/forum.mergado.com/marekdanko/32/18_2.png) [@marekdanko](https://forum.mergado.com/u/marekdanko)\
**Post date:** [September 26, 2024, 8:22am UTC](https://forum.mergado.com/t/creating-a-discount-percentage-for-each-product/1069/2 "2024-09-26T08:22:51Z")

</div>

I would say that the formula would be:

```
(1-%g:sale_price%/%g:price%)*100

```
