🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 14, 2026

How to Charge by Word Count in Gravity Forms (Price per Word, Character or Line)

GravityExtra
How to Charge by Word Count in Gravity Forms (Price per Word, Character or Line)

Some services are sold by the length of a text. A translation agency quotes per word. A newspaper charges classified ads per word or per line. An engraver charges per letter, a transcription service per page, a copywriter per hundred words. If you take these orders through Gravity Forms, the price has to follow the text the customer types — and it has to be right when the payment is taken. In this guide you will set up price per word, per character and per line pricing with the Gravity Forms Text Length Pricing add-on from GravityExtra, including starting prices, volume rates, rounding and minimum orders.

1. The real-world problem: prices that depend on text

Gravity Forms has excellent product fields, but their price is either fixed or calculated from numbers. A text is not a number. Out of the box there is no way to say “this product costs $0.10 for every word in that Paragraph field”.

Manual quoting does not scale. Many agencies still ask customers to paste their text, then count it and send a quote by e-mail. Every quote costs staff time, and every hour between the request and the price is an hour in which the customer asks a competitor. An instant price on the form itself turns a quote request into an order.

Real price lists are not a single rate. A translation often has a minimum fee that covers the first hundred words. Long documents get a lower rate after a few thousand words. Ads are rounded up to a whole amount. Engraving charges per letter but not for spaces. A useful solution has to express all of that without code.

The browser cannot be trusted with money. Anything calculated in the visitor’s browser can be changed in the browser. If the server accepts whatever price the page sends, a visitor with the developer tools open can order a 5,000-word translation for one cent. The price must be calculated again on the server from the submitted text.

2. Why calculation fields and custom snippets fall short

The usual workarounds each solve part of the problem:

  • A Number field “How many words is your text?” puts the counting on the customer. They guess, they round down, and the quote is wrong before it starts.
  • A calculation product with a formula needs a number to work with, and Gravity Forms formulas cannot count words in a text field.
  • A JavaScript snippet that counts words shows a price, but it only runs in the browser. Unless matching PHP checks the price on submission, the amount stored in the entry and sent to the payment gateway is whatever the page said.
  • Paid quoting tools outside WordPress add another monthly bill, another login and another place where customer texts are stored.

Text Length Pricing does the counting and the pricing inside Gravity Forms, shows the price live, and recalculates it on the server every time the form is sent.

3. Step-by-step: a translation quote that prices itself

We will build a quote form for a translation agency: $5 starting price that includes the first 100 words, then $0.10 per word, a cheaper rate for long texts and a minimum order.

Step 1 — Install and activate

Install the add-on from your GravityExtra account, activate it, then go to Forms → Settings → Text Pricing and activate your license key. Gravity Forms 2.9 or newer is required; Gravity Forms 3.x is fully supported.

Step 2 — Build the form

In the form editor add a Paragraph field labelled “Text to translate”, a Single Product field labelled “Translation” (switch off its quantity) and a Total field. Leave the product’s own price at zero — the add-on sets it.

Step 3 — Price the product by text length

Open the form’s Settings → Text Pricing tab. Every Single Product and Hidden product field of the form has its own card. On the “Translation” card switch on Price by text length, tick “Text to translate” under Count from, choose Words, and enter:

  • Price per unit: 0.10
  • Starting price: 5, with 100 units included
  • Volume rates: from unit 2001 on, 0.08 per unit
  • Minimum charge: 15

Type 250 into Try it at the bottom of the card: the price shows $20.00 (the starting $5 for the first 100 words plus 150 words at $0.10). Change the numbers until the examples match your price list, then save.

Text Pricing tab on a translation quote form: the Translation card counts words from "Your text" at $0.10, with a $5 starting price that includes 100 words and a Try it line
Text Pricing tab on a translation quote form: the Translation card counts words from "Your text" at $0.10, with a $5 starting price that includes 100 words and a Try it line

Step 4 — Show the price while customers type

Keep Show the count and price under the text switched on. Under the Paragraph field customers now see a line such as “250 words · $20.00” that updates as they type or paste, and the product price and the Total change with it. The line is linked to the field, so screen reader users hear it too.

Translation quote form: the customer types 250 words and sees "250 words · $20.00", the product prices and the total update
Translation quote form: the customer types 250 words and sees "250 words · $20.00", the product prices and the total update

Step 5 — Test the server price

Send the form with a sample text and open the entry: the product price is the one calculated on the server from the text that was submitted. This is the price used in the order summary, in {all_fields} and {pricing_fields}, and by payment add-ons such as Stripe and PayPal.

4. Advanced production tips

Choose the right unit. Words suit translation and copywriting. Characters not counting spaces suit engraving and embroidery, where spaces cost nothing. Lines suit classified ads and typesetting. Characters suit SMS-style messages with a hard length.

Count several fields together. Tick two or more fields under Count from — for example “Headline” and “Body” of an ad — and their counts are added up into one price.

Price several services from one text. Add a second product, such as “Proofreading”, with its own card, unit and rates. Put it behind conditional logic (“Add proofreading? Yes”) and it is only charged when shown; a counted field hidden by conditional logic counts nothing.

Typesetting card on a phone: lines with volume rates from line 4 and line 10, rounded up to a whole amount
Typesetting card on a phone: lines with volume rates from line 4 and line 10, rounded up to a whole amount

Round prices your customers recognise. “Up to the next 0.05” avoids odd cents; “up to a whole amount” gives clean ad prices. A maximum charge caps very long texts so a pasted novel does not produce a frightening quote.

Languages without spaces. Chinese and Japanese characters count as one word each, so a per-word price works for those languages too. For Thai, Lao or Khmer, which are written without spaces, use characters.

Rich text. When the Paragraph field uses the visual editor, formatting is not counted: “Hello world” is two words, and each paragraph is a line.

Quantities and totals. If the product keeps its quantity box, the text price is the unit price — handy for “number of copies”. The Total field always shows the sum.

Turn text into an instant, accurate price

Per word, character or line, with starting prices, volume rates, rounding and limits — recalculated on the server every time.

Get Text Length Pricing →

5. Frequently asked questions

Can a customer change the price in the browser?

No. The live price is a preview. When the form is sent, the add-on counts the submitted text on the server and writes the price into the entry and the order summary, whatever the page sent.

Which fields can be counted?

Paragraph (with or without the visual editor), Single Line Text, Post Body, Post Title and Post Excerpt. Which product fields can be priced? Single Product and Hidden product fields.

How are words counted?

A word is a piece of text between spaces that contains a letter or a digit, so “e-mail” is one word and a lone dash is none. Chinese and Japanese characters count one word each.

Does it work with multi-page and AJAX forms?

Yes. The text can be on one page and the product on another; the price follows. AJAX forms, several forms on one page and conditional logic are supported.

We used the earlier version — do we have to set our prices again?

No. Version 2 copies each form’s price per word, base price and included words to the new Text Pricing tab and lists the forms to review. Your earlier settings stay in place.

Ready to stop counting texts by hand? Get the Gravity Forms Text Length Pricing add-on and give every customer an exact price before they press Send.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr