
Pricing & Monetization
Event-Based Billing Explained: Examples & How to Build It
Anh-Tho Chuong•Aug 10•5 min read
Feb 23
/9 min read
Billing tax automation is the process of programmatically calculating, applying, and remitting sales tax, VAT, and GST across every invoice a SaaS company generates. The scale of the problem is real: the US alone has over 13,000 tax jurisdictions with independent rate-setting authority, and more than 175 countries impose some form of consumption tax on digital services. For SaaS companies selling across borders, manual tax management stops working within months of launch.
Billing tax automation specifically means sales tax, VAT, and GST. It doesn't cover income tax, withholding tax, or payroll tax, which SaaS companies also owe but which sit outside the billing pipeline. This guide focuses on the taxes that touch every invoice.
Most billing systems treat tax as an afterthought: a flat-rate field appended to invoices rather than a dynamic calculation tied to product type, customer location, and jurisdictional rules. The result is either systematic undercollection, which creates audit liability, or overcollection, which creates customer disputes and refund overhead. Here's how billing tax automation actually works, what it requires technically, and how to implement it without rebuilding your billing stack.
Billing tax automation is the real-time calculation and application of jurisdiction-specific tax rates to every line item on every invoice, based on the seller's nexus status, the buyer's location, and the taxability classification of the product or service being sold. Automated tax systems eliminate manual rate lookups, reduce audit exposure, and ensure compliance across hundreds or thousands of tax jurisdictions simultaneously.
The core challenge is that tax rules aren't static. State and local tax rates in the US change constantly, tracked on an ongoing basis by the Tax Foundation. VAT rates in Europe shift with regulatory cycles: France revised its digital services VAT treatment in 2024, Poland adjusted its rate the same year. GST rules in Australia, India, and Singapore each follow different registration thresholds, filing cadences, and exemption categories. A billing system that hardcodes tax rates will be wrong within weeks.
Automated tax calculation solves this by integrating with tax data providers that maintain real-time rate databases, applying location-based rules at the point of invoice generation, and producing the audit trail needed for filing and remittance.
Sales tax for SaaS companies is determined by economic nexus: the legal obligation to collect tax in a jurisdiction based on revenue or transaction volume thresholds, regardless of physical presence. Since the 2018 US Supreme Court decision in South Dakota v. Wayfair, SaaS companies can trigger nexus in any US state where they exceed that state's economic activity threshold, typically around $100,000 in revenue. The 200-transaction threshold that used to accompany this is being phased out: 16+ states, including Alaska, Wyoming, Utah, Illinois, Colorado, and Washington, have eliminated it as of 2026, moving to revenue-only thresholds.
Nexus isn't only economic, either. Hiring a single remote employee in a state can create physical nexus on its own, regardless of revenue. With most software companies now hiring remotely, this has become a more common way to trigger a filing obligation than most finance teams expect.
The practical impact is significant. A SaaS company with customers in 30 US states likely has nexus in most of them, each with different rules about whether SaaS is taxable, at what rate, and with what exemptions. Texas taxes SaaS as a data processing service at 6.25% state rate (up to 8.25% with local add-ons), but 20% of the charge is exempt, so the effective tax base is 80% of the invoiced amount. California generally exempts SaaS from sales tax. New York taxes SaaS at the standard 4% state rate plus local surcharges. These classifications change regularly: between 2020 and 2025, eleven US states changed their tax treatment of SaaS products.
For companies managing complex billing across regulated industries, tax obligations multiply with each new jurisdiction. The registration, collection, filing, and remittance cycle has to be automated or it consumes finance team capacity entirely.
Before collecting tax, a SaaS company must determine where it has nexus and register with each relevant tax authority. Nexus monitoring is the first component of tax automation: tracking cumulative revenue and transaction counts per jurisdiction against threshold triggers. Once a threshold is crossed, the company registers, begins collecting, and files returns on each jurisdiction's schedule, whether that's monthly, quarterly, or annually depending on volume.
Tax automation platforms maintain nexus threshold databases and can alert companies when they approach registration obligations. Without this monitoring, companies typically discover nexus obligations during audits, a far more expensive path that often includes back-payment of owed tax plus penalties and interest.
Value-added tax applies at each stage of the supply chain with input tax credits, while sales tax applies only at the final point of sale. For SaaS companies, the critical difference is that VAT obligations are triggered by the customer's location, not the seller's presence. Under the EU's VAT rules for digital services, a US-based SaaS company selling to a German business must either charge German VAT (19%) or validate the buyer's VAT registration number for a reverse-charge exemption.
This raises a sourcing question that trips up a lot of US-based teams: is the sale taxed based on where the seller is (origin-based) or where the buyer is (destination-based)? Most US states use destination-based sourcing for SaaS, and the EU's VAT rules for digital services are destination-based by design. It varies by state and by tax type, so this needs to be confirmed per jurisdiction rather than assumed.
The EU's One Stop Shop (OSS) mechanism simplified compliance for B2C digital services by letting companies register in a single EU member state and remit VAT for all EU sales through one return. B2B transactions still require VAT ID validation through the EU's VIES database, though, and incorrect validation can leave the seller holding the tax liability. The European Commission put the EU's VAT compliance gap at €89.3 billion in 2022, about 7% of the VAT theoretically owed, driven partly by non-compliance in cross-border digital services.
For companies operating across both US and EU markets, increasingly common as SaaS products scale globally, the billing system has to handle both tax paradigms at once: destination-based sales tax with nexus thresholds in the US, and customer-location-based VAT with registration validation in the EU. Companies navigating billing compliance requirements need tax logic that adapts to each jurisdiction's rules without manual intervention.
Goods and Services Tax systems in Australia, India, Singapore, Canada, and New Zealand each implement consumption tax differently. India's GST is particularly complex for SaaS: it uses a dual structure (Central GST and State GST) with place-of-supply rules that differ for B2B and B2C transactions. Australia applies a 10% GST to digital services sold to Australian consumers by foreign companies with revenue exceeding AUD 75,000. Singapore's GST rate increased to 9% in 2024, affecting all imported digital services.
The common thread across all consumption tax systems: SaaS products are increasingly treated as taxable digital services, with registration thresholds designed specifically to capture foreign sellers. A billing platform that only handles US sales tax or EU VAT will need custom engineering for every additional market you enter.
A complete tax automation stack for SaaS billing has four components: a tax calculation engine that determines the correct rate for each transaction in real time, a product taxability matrix that classifies each SKU or service type per jurisdiction, a customer tax profile that stores exemption certificates and VAT registration numbers, and a filing and remittance module that generates returns and tracks payment obligations.
The tax calculation engine is the core. It receives transaction data (seller location, buyer location, product classification, transaction amount) and returns the applicable tax rate and amount. This has to happen at invoice generation time, not after. Retroactive tax application creates reconciliation problems that compound with volume.
Most SaaS companies integrate their billing platform with a dedicated tax calculation provider rather than building tax logic in-house. The two dominant approaches are API-based tax engines, like Avalara AvaTax or Anrok, that calculate rates per transaction, and database-driven systems that sync rate tables locally for faster calculation.
The integration point matters. Tax calculation has to sit between invoice generation and invoice finalization in the billing pipeline. Calculate too early, at quote time, and rate changes between quote and invoice create discrepancies. Calculate too late, after invoice issuance, and corrections require credit notes and re-invoicing, which adds operational overhead and delays revenue recognition.
Open-source billing platforms like Lago handle this with native tax provider integrations, supporting both Anrok for global sales tax automation and Avalara AvaTax for multi-jurisdictional compliance. Tax calculation happens automatically during invoice finalization, with tax provider results superseding any manually configured rates. For companies requiring multi-entity billing across subsidiaries, tax rules can be configured independently per billing entity, so each legal entity applies the correct jurisdiction-specific rates.
Tax exemptions add a layer of complexity that manual processes can't scale. In the US, tax-exempt customers include government agencies, nonprofits, and resellers, each requiring different exemption certificate types that have to be collected, validated, stored, and renewed on jurisdiction-specific schedules. A single enterprise customer may hold exemption certificates in multiple states, each with a different expiration date.
In the EU, the reverse-charge mechanism shifts VAT liability from seller to buyer for B2B cross-border transactions, but only when the buyer provides a valid VAT identification number. Automated VIES validation checks the buyer's VAT ID at the point of sale, applies the reverse charge if valid, and defaults to charging VAT if validation fails. This has to happen in real time, not as a batch process after invoicing.
Lago handles this through its EU tax detection feature, which automatically validates European VAT numbers through the VIES database and assigns the correct tax treatment based on the customer's country and VAT status. Tax objects can be applied at the organization, billing entity, customer, plan, charge, or add-on level, with customer-level overrides taking precedence, giving precise control over exemption handling without manual invoice adjustments.
Electronic invoicing mandates are accelerating globally as governments push for real-time transaction reporting to close the tax gap. Italy pioneered mandatory B2B e-invoicing in 2019, and the EU's ViDA (VAT in the Digital Age) proposal will require real-time digital reporting for cross-border B2B transactions across all member states. India's GST e-invoicing mandate already covers businesses with turnover above INR 5 crore, and Saudi Arabia's ZATCA requirements apply to all VAT-registered businesses.
For SaaS billing systems, e-invoicing mandates mean invoices have to be generated in structured digital formats, typically XML-based standards like Peppol BIS or India's JSON schema, transmitted through government-approved channels, and archived with full audit trails. Billing platforms that generate PDF-only invoices will need significant engineering to meet these requirements as mandates expand.
The intersection of tax automation and e-invoicing matters here: tax calculations have to be embedded in the structured invoice data, not just displayed on a PDF. That requires the billing platform to support machine-readable tax breakdowns per line item, per jurisdiction, a capability that separates modern billing infrastructure from legacy systems.
Tax non-compliance costs SaaS companies three ways: direct financial penalties, audit remediation expenses, and operational drag. US states typically assess penalties of 5-25% of uncollected tax plus interest, and voluntary disclosure agreements, the most favorable resolution path, still require full back-payment of owed tax. In the EU, VAT non-compliance penalties vary by member state but can reach 100% of the tax owed in severe cases.
The operational cost is often larger than the penalties. Companies that discover nexus obligations retroactively have to file back returns, issue corrected invoices, and potentially refund overcollected amounts, all while maintaining current operations. Mid-market companies spend a substantial amount of staff time on tax compliance every year, and automation reduces that load specifically for the calculation and application components, not the judgment calls around registration and filing strategy.
Beyond penalties, incorrect tax handling erodes customer trust. Enterprise buyers scrutinize invoices, and incorrect tax charges trigger procurement reviews that delay payment. For SaaS companies focused on reducing involuntary churn from payment failures, tax disputes that delay collections compound the problem.
Implementation follows a three-phase approach. First, assess your tax exposure: map where you have customers, determine nexus status per jurisdiction, and classify your products for taxability. Second, select and integrate a tax calculation provider that covers your current and projected market footprint, prioritizing providers with real-time API calculation over static rate tables. Third, configure your billing platform to call the tax engine at invoice finalization, store tax breakdowns per line item, and generate the reporting needed for filing.
The critical success factor is choosing a billing platform with native tax provider support rather than building a custom integration. Custom tax integrations break when providers update their APIs, when new jurisdictions get added, or when tax rules change, and they always change. A billing platform that treats tax as a first-class feature absorbs this maintenance, so your engineering team can focus on product instead of tax compliance infrastructure.
For companies evaluating billing platforms, tax automation capability should be weighted alongside pricing model flexibility and payment infrastructure. The total cost of manual tax management, including finance team hours, audit risk, and penalty exposure, typically exceeds the cost of automated tax calculation within the first year of multi-jurisdiction sales.
[1] OECD, International VAT/GST Guidelines
[2] Tax Foundation, State and Local Sales Tax Rates, 2024