NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Tip Calculator API

GET

Split bills and calculate gratuity cleanly across any group.

Tip Calculator computes tips and splits bill totals across group members. Pass a pre-tip bill amount, tip percentage, and group size to get the tip total, overall cost, and individual per-person shares.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/tipcalculator?amount=100
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "bill_amount": 100,
    "tip_percentage": 18,
    "tip_amount": 18,
    "total_amount": 118,
    "currency": "USD",
    "split_between": 4,
    "per_person": {
      "bill_amount": 25,
      "tip_amount": 4.5,
      "total_amount": 29.5
    },
    "common_tip_amounts": [
      {
        "percentage": 10,
        "tip_amount": 10,
        "total": 110,
        "per_person": 27.5
      },
      {
        "percentage": 15,
        "tip_amount": 15,
        "total": 115,
        "per_person": 28.75
      },
      {
        "percentage": 20,
        "tip_amount": 20,
        "total": 120,
        "per_person": 30
      }
    ],
    "formatted": {
      "bill_amount": "$100.00",
      "tip_amount": "$18.00",
      "total_amount": "$118.00",
      "per_person_total": "$29.50"
    }
  }
}

About the Tip Calculator API

Tip Calculator takes a pre-tip bill, a tip percentage and the number of people at the table, and returns the tip, the total and each person's share of the bill, the tip and the total. Works as a tip calculator and bill splitter in one call, with common tip percentages included for comparison. It handles a 0% tip correctly and defaults to 15% and one person when those values are left out.

Restaurant and dining apps use it at checkout, expense and group-payment tools use it to split bill totals fairly, and point-of-sale screens use it to suggest a gratuity before the customer chooses one.

The Free plan returns the bill, tip percentage, tip amount, total, currency code and the per-person breakdown. Paid plans add a comparison table at 10, 15, 18, 20 and 25 percent with the tip, total and per-person figure for each, and display-ready strings with the currency symbol already attached, so a gratuity calculator screen can render without its own formatting code.

How it works

The tip is amount multiplied by percentage / 100, and the total is the bill plus the tip. percentage accepts 0 to 100 and defaults to 15; a 0 is honoured rather than replaced by the default. people defaults to 1, and the bill, tip and total are each divided by it to give the per_person object.

Every money figure is rounded to two decimal places independently, after the division. Because the per-person values are rounded from unrounded totals, multiplying per_person.total_amount back by split_between can differ from total_amount by a cent or so; if you collect money from each person, decide in your own code who covers the remainder.

currency is a display setting only and no exchange conversion takes place. It is echoed back as sent, and it chooses the symbol used in formatted: USD, EUR, GBP, JPY, CNY, INR, CAD, AUD and MXN have built-in symbols (CAD shows C$, AUD A$, MXN MX$), and any other code is printed as the code followed by a space. The match is case-sensitive, and all currencies are formatted with two decimals, including JPY.

common_tip_amounts repeats the calculation for 10, 15, 18, 20 and 25 percent, each with tip_amount, total and per_person, regardless of the percentage you asked for. formatted and common_tip_amounts are null on the Free plan; all other fields are returned on every plan.

What people use it for

Dining Apps
Integrate tip calculation features into restaurant and food delivery applications
Expense Tracking
Calculate and track tip expenses for budgeting and expense reporting
Bill Splitting
Split restaurant bills fairly among groups with automatic tip calculation
Financial Tools
Provide tip guidance and calculation in personal finance and budgeting apps

Without writing code

The Tip Calculator widget from WidgetSpark splits the bill from your desktop.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Tip Calculator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Tip Calculator API.

Read the docs →
Does the calculation provide a per-person breakdown?
Yes. The response breaks down the bill into individual shares, returning the per-person bill amount, tip contribution, and total share alongside the overall totals.
Are formatted currency values and comparison tip tiers available on the Free plan?
No. The Free plan returns the core numeric calculations, while the formatted currency strings and common tip percentage comparisons require a paid subscription like Starter.
Which currencies are supported for tip calculations?
The Tip Calculator supports 172 international currency codes. You can pass your preferred currency code to receive totals aligned with your locale.
What would 20,000 tip calculations cost me?
A Starter plan covers up to 200,000 calculations per month for 200,000 credits, so 20,000 calls use just a tenth of your monthly credits. That volume works out to about $0.00015 per call or $0.15 per 1,000 calculations. You can also run up to 200 calls monthly on the Free plan.
Can I compare multiple tip percentage options in a single request?
Yes. On paid plans, the response includes an array of common tip percentage options, showing the total tip, full bill amount, and per-person cost for each tier.

Ready to build with Tip Calculator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs