
Hello everyone! Welcome back to Kodular Free AIA. This is Hifza, and today we're sharing a brand-new Tip Calculator App made in Kodular 2026, with the free .aia file you can import and test in a minute. Whether you're eating out with friends or paying for a delivery, this little app works out the tip, the total bill and how much each person should pay.
This is a perfect beginner project. It uses only built-in Kodular components (no extensions, no API keys), and it teaches you some of the most useful skills in app building: reading user input, using global variables, doing math with blocks, formatting numbers as money and showing an alert when something goes wrong.
What Does the Tip Calculator App Do?
The app has one screen with a simple flow:
- The user types the bill amount in a text box.
- They choose a tip percentage with one of four buttons: 10%, 15%, 18% or 20% (15% is selected by default).
- They set how many people are splitting the bill with the - and + buttons (minimum 1).
- When they press Calculate, the app shows the Tip, the Total and the amount Per Person, each with 2 decimal places.
- If the bill box is empty or not a valid number, a Notifier alert says "Please enter a valid bill amount".
- Reset clears everything back to the defaults.
Example: a bill of 1250 with an 18% tip split between 3 people gives Tip: 225.00, Total: 1475.00 and Per Person: 491.67.
How the Math Works
Before we open the Designer, here are the three simple formulas the app uses. Once you understand them, the blocks will make perfect sense:
- Tip = Bill × Tip% ÷ 100
- Total = Bill + Tip
- Per Person = Total ÷ Number of people
That's all there is to it. Kodular's Math drawer has a block for every one of these operations, so we just snap them together.
Designer: Components Used
Here is every component in the AIA, from top to bottom on Screen1 (Title "Tip Calculator", Align Horizontal: Center, Scrollable: on):
| Component | Name | Key properties |
|---|---|---|
| Label | LblHeading | Text "Tip Calculator", Font Size 26, Bold, indigo, Width Fill parent, centered |
| Label | LblBill | Text "Bill Amount", Bold |
| TextBox | TxtBill | Hint "Enter bill amount", Width Fill parent, Font Size 18 |
| Label | LblTipHead | Text "Tip Percentage", Bold |
| HorizontalArrangement | HA_Tips | Width Fill parent, Align Horizontal Center |
| Button (x4) | BtnTip10, BtnTip15, BtnTip18, BtnTip20 | Text "10%", "15%", "18%", "20%", Width 25% each, indigo, white bold text, rounded |
| Label | LblSelected | Text "Selected tip: 15%", grey |
| Label | LblPeopleHead | Text "Split Between", Bold |
| HorizontalArrangement | HA_People | Width Fill parent, centered |
| Button | BtnMinus | Text "-" |
| Label | LblPeople | Text "1", Width 20%, centered |
| Button | BtnPlus | Text "+" |
| Button | BtnCalculate | Text "Calculate", Width Fill parent, pink background |
| VerticalArrangement | VA_Result | Width Fill parent, light indigo background, centered |
| Label | LblTipAmount | Text "Tip: 0.00" |
| Label | LblTotal | Text "Total: 0.00" |
| Label | LblPerPerson | Text "Per Person: 0.00", Font Size 22, Bold, indigo |
| Button | BtnReset | Text "Reset", Width Fill parent, light grey |
| Notifier (non-visible) | Notifier1 | Default settings |
Tip: name your components clearly (BtnTip10, LblTotal and so on). With 15+ components on one screen, good names make the Blocks editor much easier to read.
Blocks Explained
1. Two global variables
We keep the selected tip and the number of people in global variables so every button can read and change them.
initialize global tipPercent to 15 initialize global people to 1
2. Tip buttons
Each tip button saves its percentage and updates the "Selected tip" label. Here is BtnTip10; BtnTip15, BtnTip18 and BtnTip20 are the same with 15, 18 and 20.
when BtnTip10.Click
set global tipPercent to 10
set LblSelected.Text to join("Selected tip: ", get global tipPercent, "%")
3. Plus and minus buttons
The plus button adds one person. The minus button only subtracts when there is more than one person, so the count can never go to 0 (which would break the division later).
when BtnPlus.Click
set global people to (get global people + 1)
set LblPeople.Text to get global people
when BtnMinus.Click
if get global people > 1
set global people to (get global people - 1)
set LblPeople.Text to get global people
4. The Calculate button
This is the main logic. First we check that the bill is a number using the is number? block inside a not block. If it isn't, we show an alert. If it is, we use two local variables: tip and total.
when BtnCalculate.Click
if not(is number?(TxtBill.Text))
call Notifier1.ShowAlert notice: "Please enter a valid bill amount"
else
initialize local tip to ((TxtBill.Text × get global tipPercent) ÷ 100)
in initialize local total to (TxtBill.Text + get tip)
in
set LblTipAmount.Text to join("Tip: ", format as decimal(get tip, places 2))
set LblTotal.Text to join("Total: ", format as decimal(get total, places 2))
set LblPerPerson.Text to join("Per Person: ",
format as decimal((get total ÷ get global people), places 2))
The format as decimal block (Math drawer) turns 491.6666 into 491.67, so the result always looks like money.
5. The Reset button
when BtnReset.Click set TxtBill.Text to "" set global tipPercent to 15 set global people to 1 set LblSelected.Text to "Selected tip: 15%" set LblPeople.Text to "1" set LblTipAmount.Text to "Tip: 0.00" set LblTotal.Text to "Total: 0.00" set LblPerPerson.Text to "Per Person: 0.00"

How to Import the AIA into Kodular
- Download TipCalculator.aia from the button below.
- Open Kodular Creator and sign in.
- Click Projects → Import project (.aia) from my computer.
- Choose the TipCalculator.aia file and wait for the project to open.
- Test it with the Kodular Companion app, or build the APK from the Export menu.
Common Mistakes
- Letting the people count reach 0. Dividing by 0 gives an error or "Infinity". The if people > 1 check on the minus button prevents this.
- Skipping input validation. If the user leaves the box empty or types only a dot, math blocks will throw an error. Always check with is number? first.
- Forgetting to format the result. Without format as decimal you'll see long numbers like 491.6666666667.
- Using local variables outside their block. tip and total only exist inside their "initialize local" blocks, so put the label blocks inside them.
- Mixing up text and numbers in join. Join always returns text. Do your math first, then join the result with the label text.
Ideas to Extend the App
- Add a Custom tip TextBox so users can type any percentage.
- Highlight the selected tip button by changing its Background Color.
- Add a Round up option so each person pays a whole number.
- Save the last tip percentage with TinyDB. See our Kodular TinyDB Tutorial 2026.
- Use a confirmation dialog before resetting, like in our Notifier Dialogs App.
- Combine it with other calculators, such as our BMI Calculator App, into one "Everyday Calculators" app.
Download Free AIA:
Download Link 2 (Google Drive)
DownloadConclusion
That's it! You now have a working Tip Calculator App in Kodular that handles user input, global and local variables, math blocks, number formatting and alerts, all without a single extension. It's small, but these are the same building blocks you'll use in shopping carts, expense trackers and many other apps.
If you have any questions or get stuck while importing the AIA, leave a comment below and I'll help you out. Tell me which app you want us to build next! Thanks for reading, and see you in the next post.