Completing the square is a method for rewriting any quadratic expression from standard form (ax squared plus bx plus c) into vertex form (a(x minus h) squared plus k). The vertex form immediately reveals the vertex of the parabola at coordinates (h, k): h is the axis of symmetry and k is the minimum value of the function if a is positive or the maximum if a is negative. This technique underpins the derivation of the quadratic formula, the analysis of conic sections, and techniques in calculus such as integration of rational functions. It is also the most systematic way to solve a quadratic equation when factoring is not obvious: once you have the vertex form you simply isolate x and take the square root of both sides. This calculator accepts the three coefficients a, b and c of a quadratic in the form ax squared plus bx plus c, rewrites it in vertex form, identifies the vertex and the discriminant, and solves for the roots if they exist. It also shows each intermediate step. The defaults use a=1, b=-6, c=5, the quadratic x squared minus 6x plus 5, which factors as (x minus 1)(x minus 5) and has roots x=1 and x=5.
For ax squared plus bx plus c, the vertex h equals minus b divided by 2a. Vertex k equals c minus b squared divided by 4a. These give the vertex form a(x minus h) squared plus k. The discriminant is b squared minus 4ac. If the discriminant is positive there are two real roots given by the quadratic formula: x = (minus b plus or minus the square root of the discriminant) divided by 2a. If zero, one repeated root. If negative, no real roots. Each step is built up from the intermediate values and displayed below the result card.
Quadratic: x squared minus 6x plus 5 (a=1, b=-6, c=5). h = -(-6)/(2 times 1) = 6/2 = 3. k = 5 - (-6) squared/(4 times 1) = 5 - 36/4 = 5 - 9 = -4. Vertex form: (x - 3) squared - 4. Discriminant: (-6) squared - 4(1)(5) = 36 - 20 = 16. Roots: (6 plus or minus 4)/2, giving x = 5 and x = 1. These match the defaults pre-filled above.
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 via 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-07-19 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.