This residual calculator works out the residual, the gap between an observed value and the value a model predicts, such as a point on a regression line or a forecast figure. Residuals are the backbone of checking how well a statistical model fits real data, and they underpin methods like least squares regression, where the goal is to make the sum of squared residuals as small as possible. Enter your observed value and your predicted value into the two fields, and the calculator instantly returns three results: the residual itself, observed minus predicted, the squared residual used in least squares fitting, and the residual expressed as a percentage of the observed value. A positive residual means the model under-predicted, so the real figure was higher than expected, while a negative residual means it over-predicted. Watch the sign as much as the size, since a residual close to zero signals a good fit, while a large residual, positive or negative, flags a point the model struggled with. This tool suits students marking assignments, researchers checking model accuracy, and analysts screening data for outliers before running further statistical tests. Try the built-in worked example, an observed value of 10 against a predicted value of 8, to see how the residual, its square and its percentage are worked out before entering your own figures.
A residual is the observed value minus the predicted value: residual = observed minus predicted. The squared residual is that difference squared, the quantity minimised in least squares regression.
If a model predicts 8 but the observed value is 10, the residual is 10 minus 8 = 2, the squared residual is 4, and the residual is 20 percent of the observed value. Enter 10 and 8 to confirm.
The difference between an observed value and the value a model predicts: observed minus predicted.
A positive residual means the model under-predicted; a negative residual means it over-predicted.
Squaring removes the sign and penalises large errors more. Least squares regression minimises the sum of squared residuals.
This calculator is for statistics students, researchers and analysts.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland by SiteHost New Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-08-15 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.