Water Quality Index Calculator Formula
Understand the math behind the water quality index calculator. Each variable explained with a worked example.
Formulas Used
Water Quality Index
wqi = weighted_sumDO Contribution
rating = do_score * 0.30Turbidity Contribution
turbidity_contrib = turbidity_score * 0.20Nutrient Contribution
nutrient_contrib = nutrient_score * 0.20Variables
| Variable | Description | Default |
|---|---|---|
do_score | Dissolved Oxygen Score(0-100) | 75 |
ph_score | pH Score(0-100) | 80 |
turbidity_score | Turbidity Score(0-100) | 70 |
temp_score | Temperature Score(0-100) | 85 |
nutrient_score | Nutrient Score(0-100) | 65 |
weighted_sum | Derived value= do_score * 0.30 + ph_score * 0.15 + turbidity_score * 0.20 + temp_score * 0.15 + nutrient_score * 0.20 | calculated |
How It Works
How to Calculate Water Quality Index
The WQI combines multiple water quality parameters into a single score.
Formula
WQI = DO(0.30) + pH(0.15) + Turbidity(0.20) + Temp(0.15) + Nutrients(0.20)
Rating Scale
Each parameter is first converted to a 0-100 sub-index score based on its measured value.
Worked Example
A water body with DO=75, pH=80, Turbidity=70, Temperature=85, Nutrients=65.
do_score = 75ph_score = 80turbidity_score = 70temp_score = 85nutrient_score = 65
- 01DO: 75 * 0.30 = 22.5
- 02pH: 80 * 0.15 = 12.0
- 03Turbidity: 70 * 0.20 = 14.0
- 04Temperature: 85 * 0.15 = 12.75
- 05Nutrients: 65 * 0.20 = 13.0
- 06WQI = 22.5 + 12.0 + 14.0 + 12.75 + 13.0 = 74.3 (Good)
Ready to run the numbers?
Open Water Quality Index Calculator