Free mini apps

GST calculator with profit margin

Add or take out GST in one tap, then check your profit margin and markup before you set a price.

Want to learn to build this?

This app was built with AI, step by step, by describing what it should do and testing the result. On the 2-day GenAI Builder Sprint you build and deploy a working app of your own, with no coding background needed. SkillsFuture funding may apply, subject to eligibility.

Prompt sheet: build an app like this

Paste these into any AI coding tool, one at a time. Fill the square brackets with facts from the official source. Then run the tests and check the result before you rely on it.

1. Start prompt

Build a GST and profit margin calculator for Singapore small businesses.
Part 1: enter an amount, then tap Add GST or Remove GST. Show the price before GST, the GST and the price with GST. GST rate: [9]%.
Part 2: enter your cost and your selling price. Show profit, profit margin (profit as a share of the selling price) and markup (profit as a share of the cost).
Money to 2 decimal places, percentages to 1.
One page, plain HTML, CSS and JavaScript in one file. Works well on a phone, with large buttons. Store nothing the user types and send nothing anywhere.

2. Improve it

Explain under the result, in one line each, the difference between margin and markup.
Make the GST rate a single setting at the top of the code, so it is easy to change.
Show a clear message instead of a result when the cost or price is missing or zero.

3. Test it

  • S$100, Add GST: GST S$9.00, price with GST S$109.00.
  • S$109, Remove GST: price before GST S$100.00.
  • Cost S$60, price S$100: profit S$40.00, margin 40%, markup 66.7%.

4. Watch out for

  • Margin and markup are often mixed up. Check both against the sums above.
  • Check the current GST rate on the IRAS website before you rely on it.

Adding GST multiplies the price by 1.09. Taking GST out of a price that already includes it divides by 1.09, which is not the same as subtracting 9%.

Margin and markup are often mixed up. A cost of S$60 sold at S$100 is a 40% margin but a 66.7% markup.

Before you rely on this

Only GST-registered businesses charge GST. Use the figures as a guide, and check with IRAS or your accountant for how GST applies to your sales. Checked 23 November 2026.

Sources

More free mini apps

CPF take-home pay calculatorSee your CPF contributions and what lands in your bank, by age group.
Public holidays and long weekendsEvery public holiday, the long weekends, and the best days to take leave.
Quotation and invoice makerType your items and get a clean quotation or invoice to save as a PDF.

See all 17 free mini apps