โ† Back to Projects

Tip Calculator

Livetool

A clean, real-time tip calculator that handles bill splitting across multiple people with instant feedback and input validation โ€” built with vanilla JS.

๐ŸŒ Live Site๐Ÿ“ GitHub RepoBy Kyle Parsotan ยท 2021

Problem

Manually splitting bills and calculating tips at a restaurant is error-prone and slow, especially across larger groups with custom tip percentages.

Solution

Built a reactive vanilla JS form that recalculates the per-person tip and total on every input change. Input validation guards against divide-by-zero and non-numeric entries. A reset button clears all fields instantly.

Tech Stack

Frontend
JavaScript (ES6)HTML5CSS3
DevOps
Vercel

Architecture

Frontend

Pure vanilla JS with event listeners on each input field triggering a central calculate() function. Controlled inputs feed a tip-per-person and total-per-person formula: tipAmount = (bill ร— tipPercent / 100) / numPeople. Input validation checks for empty fields, zero people (prevents division by zero), and negative values before rendering results. CSS custom properties manage the color theme; no framework needed.

Backend

None.

Database

None.

Features

Future Improvements

By Kyle Parsotan ยท 2021
Available for Projects

Ready to Get to Work?

Let's transform your ideas into reality. Whether you need a website, web app, or consulting โ€” I'm here to help you succeed.

Fast Delivery
Scalable Solutions
Clean Code

Trusted by clients worldwide delivering results on time and within budget.

Captcha: 4 + 8 = ?