> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlago.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Usage based charge

> Usage-based charges let you bill customers based on actual consumption. They are tied to billable metrics and calculated from usage events collected during the billing period.

## Overview of charges[](#overview-of-charges "Direct link to heading")

Usage-based charges allow you to add pay-as-you-go pricing to a plan.
Each charge is linked to an existing [billable metric](/guide/billable-metrics/create-billable-metrics) and calculated from the events collected during the billing period.

Common examples include API calls, active users, transactions, or compute time.
Pricing follows the charge configuration (tiers, aggregation, proration, etc.), ensuring invoices reflect real usage rather than a fixed amount.

## Charge models and billing behavior[](#charge-models "Direct link to heading")

Charges support a set of pricing options compared to the fixed charges.
They can use:

* [All charge models](/guide/plans/charges/charge-models).

They can be configured to:

* Be billed [in advance or in arrears](/guide/plans/charges/arrears-vs-advance);
* Be billed [in full or prorated](/guide/plans/charges/prorated-vs-full);
* Apply [spending minimums](/guide/plans/charges/spending-minimum) depending on the charge model;
* Support [filters](/guide/plans/charges/charges-with-filters) to control which events are included in usage calculations;
* Be grouped by [presentation keys](/guide/plans/charges/grouping) to display related usage together on invoices;
* Be marked as [invoiceable or not](/guide/plans/charges/invoiceable-vs-noninvoiceable) when billed in advance, to avoid generating too many invoices from usage events.

## Currency[](#charges-currency "Direct link to heading")

All usage-based charges use the same currency as the plan, ensuring consistency across invoices.

## Trial period[](#trial-period-exclusion "Direct link to heading")

The trial period applies only to the plan’s base amount and does not cover usage-based charges.
Usage events recorded during the trial are always considered and billed.

## Decimals precision[](#number-of-decimals "Direct link to heading")

Charges can be defined with up to 15 decimal places (for example: \$0.000123456789123).
Charges are invoiced in `amount_cents`, so Lago automatically rounds values when generating invoices (for example, USD 1102 `amount_cents` = \$11.02).

## Delete a charge[](#delete-charge "Direct link to heading")

You can delete a charge even if the plan is associated to active [subscriptions](/guide/subscriptions/assign-plan).

Once deleted and saved:

* The charge is immediately removed from all linked subscriptions
* It no longer appears in customer [current usage](/api-reference/customer-usage/customer-usage-object); and
* It is removed from all `draft` invoices.

However, the charge will still appear on invoices `finalized` before the deletion.

<Info>
  Deleting a charge does not delete the underlying events.\
  If the charge is later re-added, previously collected events may be included in billing, depending on the billing period limits.
</Info>

<Frame caption="How to delete a charge">
  <img src="https://mintcdn.com/lago/Qjm2ad-IYGtRgG7r/guide/plans/images/charges-delete-e8b82428bc7fe73f40f419fb6ee88dab.png?fit=max&auto=format&n=Qjm2ad-IYGtRgG7r&q=85&s=72b5b75d6893499434f026e1588e7245" width="1636" height="884" data-path="guide/plans/images/charges-delete-e8b82428bc7fe73f40f419fb6ee88dab.png" />
</Frame>

## Invoice display name[](#invoice-display-names "Direct link to heading")

You can customize, during plan creation or edition, how a charge appears on invoices by setting an `invoice display name`.
This name overrides the default charge name and is shown everywhere invoices are displayed.

<Frame caption="How to modify the invoice display name">
  <img src="https://mintcdn.com/lago/Qjm2ad-IYGtRgG7r/guide/plans/images/invoice-display-name.gif?s=b06464822ca7882a8a1b9d6bae6f0761" width="1158" height="720" data-path="guide/plans/images/invoice-display-name.gif" />
</Frame>
