# Aquarium Water Change and Dosing > Nitrate after each partial water change and the dose of conditioner or medication from the label. Shows how the nitrate level falls with repeated partial water changes — including the nitrate in your tap water and how much builds up between changes — how many changes reach your target, and how much water conditioner, fertiliser or medication to add for the tank or the new water, from the label values you type. Part of usefulweb.site (https://usefulweb.site/). Part of [Hearth](https://hearth.usefulweb.site/) (ownerApp: hearth). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://hearthwaterchange.usefulweb.site/ (interactive tool at https://hearthwaterchange.usefulweb.site/tool) - JSON API: POST https://hearthwaterchange.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://hearthwaterchange.usefulweb.site/api/v1/tool) - OpenAPI: https://hearthwaterchange.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://hearthwaterchange.usefulweb.site/mcp - tool `hearth_water_change` ## Inputs - tankLitres (number): Water in the tank (litres) - The real water volume — the Aquarium Volume and Weight tool works it out. - changePercent (number): Water changed each time (%) - changes (integer): Number of changes to plan - currentNitrate (number): Nitrate now (mg/L NO₃) - tapNitrate (number): Nitrate in the new water (mg/L NO₃) - Your water supplier publishes it; test kits show it too. - targetNitrate (number): Target nitrate (mg/L NO₃) - buildUp (number): Nitrate that builds up between two changes (mg/L) - Measure before and after a week; 0 ignores it. - products (table): Products to dose (from the label) ## Method - Mass balance with complete mixing: after a change of the fraction f, nitrate = before × (1 − f) + f × nitrate of the new water. Between two changes the build-up you enter is added. The series settles at new-water nitrate + build-up × (1 − f) / f after each change. - One change to reach the target: f = (now − target) / (now − new water). n equal changes without build-up: f = 1 − ((target − new water) / (now − new water))^(1/n). A target at or below the new water’s nitrate cannot be reached by water changes. - Dose = label amount × litres ÷ label litres, for the whole water volume or for the new water of one change (water conditioners are usually dosed for the new water; follow the label). ## Limits - Estimates for planning water changes; measure with a test kit. Always follow the product label, and ask a vet or an aquarium specialist before medicating fish, shrimp or snails.