Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

How to Calculate Tax or VAT with Gravity Forms

Add tax to your Gravity Forms' submissions in 5 minutes or less.

Last updated August 22, 2019 | Written by David Smith 16 Comments

This article requires the GP eCommerce Fields perk. Buy Gravity Perks today to get this perk plus 33 other premium Gravity Forms plugins!

  • View the Plugin
  • Buy Gravity Perks

Overview

GF eCommerce Field offers several powerful new field types. For this tutorial, we’ll be working with the Tax field. The Tax field allows you to automatically calculate a percentage-based tax that will be applied to the order total.

  • Step 1 – Install & Activate GF eCommerce Fields
  • Step 2 – Add a Tax Field to Your Form
  • Step 3 – Configure the Tax Amount
  • Preview the Form

Step 1 Install & Activate GF eCommerce Fields

Let’s get started by installing and activating the GF eCommerce Fields plugin.

Step 2 Add a Tax Field to Your Form

Next, let’s add a Tax field to your form. You will find the Tax field button under the “Pricing Fields” field group on the right side of the form editor.


Multiple Tax Fields
You can add as many Tax fields as you require. You can have all Tax fields apply to each order – or – you can use conditional logic to apply a specific Tax field dependent on any number of conditions.

Step 3 Configure the Tax Amount

It’s time to specify the tax amount. Specify any number 1 – 100. This will be the percentage used to calculate the tax amount.


Apply To or Exclude From Specific Products
You can optionally apply the tax to specific products – or – exclude specific products from being included in the tax. Just select the desired option from the “Applicable Products” setting and specify the products to include/exclude.

Preview the Form

And we’re done! Preview your form to see your Tax field in action. Here’s an example from our full documentation for GF eCommerce Fields.

Did this resource help you do something awesome with Gravity Forms? Then you'll absolutely love Gravity Perks; a suite of 32+ essential add-ons for Gravity Forms with support you can count on.

  • View All Perks
  • Buy Gravity Perks

Filed Under: How To conditional logic gp ecommerce fields tax field

Comments

  1. Mike says

    December 3, 2020 at 11:48 pm

    HI there, I have the same requirement that James does above. Basically I need to calculate tax as a percentage of the total amount, rather than add it on. Are you please able to email me the solution as well. Thanks! Mike

    Reply
    • Scott Buchmann says

      December 4, 2020 at 1:21 pm

      Hi Mike,

      I’ve added your vote for this feature. No ETA, however it’s on our roadmap.

  2. Michael Meadow says

    October 14, 2019 at 8:15 pm

    Is there a way to apply a tax specific to the locale of the user? For instance, digital products in the US are now required to have applicable state taxes for where the user is located to every purchase. Selling internationally requires a different tax rate in each country.

    Is there an automated way to apply the tax to the purchase amount based on the location a user selects from the location dropdown? Our company needs to be tax compliant by adhering to all local tax rates to be able to depend on and purchase this addon.

    Reply
    • David Smith says

      November 4, 2019 at 8:57 am

      We do not currently have an automated solution for this. It’s possible using conditional logic but we know it’s a bit cumbersome. Definitely something we’d like to look into for inclusion in a future version!

  3. Sebastian Frankenberger says

    October 4, 2019 at 3:51 pm

    Hi David,

    I need exactly the same like James Carmody. Products with Tax included and at the end a tax field showing how much tax is included. Thx

    Sebastian

    Reply
    • David Smith says

      October 5, 2019 at 7:46 am

      Thanks for the feedback, Sebastian. I’ve added your vote for this feature. No ETA but it’s on our roadmap.

  4. James Carmody says

    September 29, 2019 at 9:20 am

    How can I make the tax as inclusive of products and shipping?

    Reply
    • David Smith says

      September 29, 2019 at 9:38 am

      Hi James, shipping is not available for inclusion in taxes. Do you have some information on why/where this is required?

    • James Carmody says

      September 30, 2019 at 4:13 am

      I actually thought shipping was already included which is a requirement for Australia. My question was worded badly, I was actually trying to ask if the Tax can be set to display the inclusive amount rather than adding tax to the tax exclusive subtotal.

      E.g. if I have a $100 product and then add 10% tax it becomes $110 but if I wanted a $100 product inclusive of tax it should display the total as $100 but then show $9.09 of tax. I have tried setting the product itself to the exclusive amount of $90.91 which works. However in Australia we legally have to show prices inclusive of tax so as a workaround I put the tax inclusive price in the description. Thanks!

    • David Smith says

      October 1, 2019 at 7:07 am

      Hey James, that was bad info. Shipping is included in taxes. I’m not quite tracking on your explanation of what you have set up. You show the price inclusive of tax for the individual products but then have to list the full tax amount (even that already included in the products) as a separate line item?

    • James Carmody says

      October 1, 2019 at 7:12 am

      Yeah that is essentially correct. We show all the product prices including tax and then show a break down of how much tax was paid for the customers reference. This is usually shown as a seperate line item on all receipts and invoices in Australia.

    • David Smith says

      October 1, 2019 at 7:38 am

      Thanks for the info, James. Just sent you an email.

  5. Howard Ohori says

    July 9, 2018 at 7:48 pm

    Hi David,

    I tried doing this calculation and got it to work but my notification email summary is totally incorrect. Will your solution help me get this sub total, tax order total correct for the form and the notification? (I am using the auto-format feature in GF as my html sucks)

    Reply
    • David Smith says

      July 9, 2018 at 9:16 pm

      I’m not sure I understand how you’re currently trying to accomplish this but GP eCommerce Fields will make it easy. :)

  6. Brian Asquith says

    April 3, 2018 at 3:37 pm

    I am having an issue where this plugin is calculating a tax higher than it should be. For example, I have a 339.00 product. The tax on it is 13%. The amount should be 43.07; however, the plugin calculates it as 44.22

    Reply
    • David Smith says

      April 3, 2018 at 4:32 pm

      Hi Brian, we’ll be happy to help you via support.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

  • How To (64)
  • News (21)
  • Plugins (14)
  • Releases (7)
  • Resource (3)
  • Snippets (58)
  • Tutorials (57)
  • Updates (104)

Recent Posts

  • How to Send a Follow-Up and Pre-Fill Information
  • How to Update Posts with Gravity Forms
  • Gravity Wiz Weekly #104
  • The Complete Guide to Using Gravity Forms With Zapier
  • Gravity Wiz Weekly #103

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2021 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account