Campaign
Total budget for the campaign.
Sets the typical click-through rate used to estimate impressions.
Typical: Google Ads 1.40, Facebook 1.00, LinkedIn 5.50, Email 0.30.
Share of clicks that become orders.
Your economics
Revenue per order.
Share of revenue left after the cost of goods.

CalcBuilder example

Marketing Campaign ROI

September 21, 2026

Marketing Campaign ROI shown on the live frontend, with a calculated result.

Live result on the frontend

Turn an ad budget, a cost per click and a conversion rate into clicks, orders, revenue, profit, ROI, ROAS and cost per acquisition, with a funnel and a revenue-split bar.

The Marketing Campaign ROI calculator follows an ad budget through the funnel, from impressions to clicks to orders, and then works out whether the campaign made money once the cost of goods and the ad spend are covered.

What it calculates

A visitor enters an ad spend, picks a channel and gives a cost per click, a conversion rate, an average order value and a gross margin. The calculator returns:

  • Funnel volumes — clicks (spend divided by cost per click), orders (clicks times conversion rate) and estimated impressions from the channel’s typical click-through rate.
  • Revenue and profit — orders times order value, then gross profit at the given margin, minus the ad spend.
  • ROI and ROAS — ROI is campaign profit divided by ad spend; ROAS is revenue divided by ad spend, shown next to the break-even ROAS (one over the margin).
  • Cost per acquisition — the ad spend divided by the number of orders.
  • Two visuals — a funnel of impressions, clicks and orders with the rates between the steps, and a bar splitting revenue into cost of goods, ad spend and profit.

How it’s built

Five Number fields and one Option List feed the PHP Code. The list holds the channel key; PHP maps it to a typical click-through rate and channel name, so the help text and the funnel stay in sync with one lookup table.

The funnel and the revenue split are plain HTML and CSS: PHP computes the percentage widths and the Exit Layout uses them inside inline styles. When the campaign loses money the profit segment disappears and the advice line explains the shortfall against the break-even ROAS.

Marketing Campaign ROI - input form on the frontend

The input form as your visitors see it, styled with the Form Layout.

Marketing Campaign ROI - Form Fields admin screen

Six fields: five Number fields and one Option List for the channel.

Marketing Campaign ROI - PHP Code admin screen

Funnel maths, revenue, profit, ROI, ROAS, break-even ROAS and the split-bar widths.

Marketing Campaign ROI - Exit Layout admin screen

The Exit Layout: three hero cards, four metric cards, the funnel and the revenue-split bar.

Want this exact example on your own site?

Download the file above, then in your Joomla admin open Components › CalcBuilder › Import and upload it — it's the same file you'd get from that component's own Export button, so it drops in as a ready-to-use, fully working copy in one step.