Goal
Calculate the determinant or inverse of a two-by-two matrix with the defining formula shown.
Worldwide context
Saved once here, used across the site.
Currency changes display only. Country selection guides tax input; no tax rate is guessed.
Calculate the determinant or inverse of a two-by-two matrix with the defining formula shown.
det([[a,b],[c,d]]) = ad - bc; inverse = 1/(ad-bc) [[d,-b],[-c,a]].A clearer path to an answer
This page keeps the calculation transparent: define the goal, enter the matching values, inspect the method, and decide what the result means in your situation.
Calculate the determinant or inverse of a two-by-two matrix with the defining formula shown.
Matrix a · Matrix b · Matrix c · Matrix d · Operation
det([[a,b],[c,d]]) = ad - bc; inverse = 1/(ad-bc) [[d,-b],[-c,a]].
Calculate, review the assumptions below, then compare a related tool when the decision needs more context.
Calculate the determinant or inverse of a two-by-two matrix with the defining formula shown.
Open the 2x2 Matrix Calculator pageMore math tools
Download PDFDownload Word (.doc)
Enter your values above and choose Calculate to see the result here.
Calculation map
det([[a,b],[c,d]]) = ad - bc; inverse = 1/(ad-bc) [[d,-b],[-c,a]].
Bounded, transparent calculation
Your recent runs stay in this browser session only.
Formula: det([[a,b],[c,d]]) = ad - bc; inverse = 1/(ad-bc) [[d,-b],[-c,a]].
The scope is deliberately limited to 2x2 matrices so the displayed operation is complete and auditable.
Worked example: Determinant = 10.
The displayed limits are checked before the handler runs. Model-specific domain checks may also reject impossible or non-finite inputs.
Methodology: This calculator follows the WorldCalculate input, formula, precision, and boundary policy. Read the official methodology.
Calculator usage statistics
This section counts anonymous successful Calculate submissions, not unique visitors. Counts and top tools appear only when trusted aggregate data is available; country analysis is shown only under the same condition and reporting threshold.
Answer-first guide
Calculate the determinant or inverse of a two-by-two matrix with the defining formula shown. Start with one clearly defined goal, enter values in the units shown, and keep the result attached to the assumptions below.
This tool is useful when your question includes matrix calculator, 2x2 matrix, determinant. It returns the outputs declared in the calculator contract rather than a live quote, approval, diagnosis, or professional sign-off.
Matrix a · Matrix b · Matrix c · Matrix d · Operation. Keep the same time period, unit system, and currency wherever the form requires comparable values.
Run the worked example first, compare its output with the page's example, then change one input at a time. This makes an unexpected result easier to trace to a unit, boundary, or assumption.
Need a wider view? Browse Math Calculators or compare the related tools below. The WorldCalculate methodology explains how formulas, examples, limits, and revisions are reviewed.
det([[a,b],[c,d]]) = ad - bc; inverse = 1/(ad-bc) [[d,-b],[-c,a]].
The scope is deliberately limited to 2x2 matrices so the displayed operation is complete and auditable.
Determinant = 10.
Context and background
Math calculators move from named quantities to a relation, then to a result that can be checked with substitution, units, or an alternate form.
Arithmetic, algebra, geometry, trigonometry, and number theory provide reusable structures for classroom work and everyday reasoning. Each page narrows that structure to one declared problem.
Research and review
Researched by Hassan ALRowaie, Founder and editorial researcher at WorldCalculate.
This guide follows the live calculator's declared inputs, formula, worked example, assumptions, validation boundaries, and source-backed methodology. The review date describes editorial review of the calculator explanation; it is not a promise that external facts or rates remain current.
A two-by-two matrix has four entries arranged in two rows and two columns. This calculator accepts the entries a, b, c, and d in the arrangement [[a, b],[c, d]] and performs one of two explicit operations: determinant or inverse. The determinant is ad - bc. When the determinant is nonzero, the inverse is 1/(ad-bc) multiplied by [[d,-b],[-c, a]]. The page keeps the scope deliberately small so each displayed operation can be checked from the inputs and formula. A zero determinant is allowed for the determinant operation but cannot produce an inverse. Larger matrices, row reduction, eigenvalues, matrix products, and numerical conditioning analysis are outside this page. The guide explains layout, arithmetic, signs, singular cases, verification, result formatting, bounds, and the exact limit of a 2x2-only tool.
The four numeric fields form the matrix [[a, b],[c, d]]. The first row is a followed by b, and the second row is c followed by d. This order is part of the contract. Moving b and c can change the determinant, and moving a value from one row to another can change the inverse. Before entering numbers, rewrite the matrix in this row-major layout so that the field labels and the written problem agree.
The page offers a determinant operation and an inverse operation. Both operations use the same four entries. Determinant returns one numeric value. Inverse returns a text representation of the inverse matrix and also returns the determinant used in the denominator. The output is therefore tied to the selected operation, not a general matrix report containing every possible property.
A matrix is more than four unrelated numbers because their positions define how a linear relationship is arranged. This calculator does not infer a different arrangement from visual spacing, labels copied from another convention, or a diagram. If your source uses a column-first notation, translate it explicitly into [[a, b],[c, d]] before pressing calculate.
Enter a, b, c, and d as finite real numbers. The handler accepts each entry from negative one billion through positive one billion. Decimal and negative values are allowed, and zero is allowed in any entry field. The input controls do not require an integer matrix. The matrix remains a real-valued 2x2 matrix as long as every entry passes the finite numeric validation.
The field labels say Matrix a, Matrix b, Matrix c, and Matrix d to keep the notation visible. If a problem is written as a bracketed array, copy the top-left value into a, the top-right into b, the bottom-left into c, and the bottom-right into d. If the source includes units, scaling factors, or a variable symbol, resolve those separately before entering a numeric instance.
The calculator does not ask for a matrix size because its size is fixed. Do not paste a comma-separated array into one field or expect the page to parse extra rows. Four fields are the complete input contract. A larger or symbolic problem requires a different representation and method rather than an attempt to compress it into four numbers.
The Operation selector has two choices. Choose Determinant when you need ad - bc, including when the result may be zero. Choose Inverse when you need the reciprocal determinant factor and the rearranged entries. The selector is validated against those exact choices. An unknown operation is rejected rather than being treated as a default, because silently choosing an operation could make a correct-looking number answer the wrong question.
The determinant path is simpler: it calculates one product for the main diagonal, one product for the other diagonal, and subtracts the second product from the first. It does not require a nonzero determinant. The inverse path performs the same determinant calculation first, then checks whether the result is zero before dividing the rearranged entries by it.
If you are learning the formula, calculate the determinant first and inspect it before selecting inverse. That two-step approach makes the singular case visible and provides an independent value to compare with the inverse result. The calculator can perform both operations, but the operation choice should follow the mathematical question you intend to ask.
For the matrix [[a, b],[c, d]], the determinant is det = a d - b c. The first product uses the top-left and bottom-right entries, which form the main diagonal. The second product uses the top-right and bottom-left entries, which form the other diagonal. Subtracting the second diagonal product from the first gives the complete 2x2 determinant formula.
The order of the subtraction matters. It is not a d + b c, and it is not a b - c d. The determinant formula is a compact position-sensitive operation. Writing the two diagonal products on separate lines is a useful hand check: first compute a times d, then compute b times c, then subtract the latter from the former.
The result can be positive, negative, or zero. Its sign is determined by the two products and their order. A zero result means the two diagonal products are equal, which is the singular condition for the inverse operation. It does not make the determinant operation invalid; it tells you something important about the matrix's invertibility.
Use a = 4, b = 7, c = 2, and d = 6. The matrix is [[4,7],[2,6]]. The main diagonal product is 4 x 6 = 24. The other diagonal product is 7 x 2 = 14. Subtracting gives determinant = 24 - 14 = 10. This is the catalog example and the default operation, so it offers a compact check that the field order has been preserved.
The result is positive because the main diagonal product is larger than the other diagonal product. That sign describes the algebraic result for this arrangement; it is not a general claim about every matrix with positive entries. If b and c were exchanged, the numerical products could change, and the matrix would be a different input even if the same four values appeared on the page.
A hand calculation should retain the matrix layout next to the number. Writing only 10 loses the reason for the result and makes it harder to identify a swapped entry later. The calculator displays the defining step so that the arithmetic can be compared with the written [[4,7],[2,6]] arrangement.
Negative and zero entries are ordinary real values in this calculator. The determinant formula still uses the same two diagonal products and the same subtraction. If b is negative, then b c changes sign according to c. If a or d is negative, the main diagonal product changes accordingly. Do not apply a separate sign rule to the determinant; follow multiplication first and subtraction second.
A zero entry can simplify one diagonal product. For example, if b = 0, the determinant becomes a d because b c is zero. If both diagonal products are zero, the determinant is zero. These simplified cases are useful for checking the general formula, but they do not change the matrix layout or automatically tell you what an inverse should be.
A matrix with a zero entry can still have a nonzero determinant and therefore an inverse. Conversely, a matrix with four nonzero entries can have a zero determinant if the two diagonal products match. Looking at whether entries are individually zero is not enough to decide invertibility; calculate ad - bc for the full arrangement.
For [[a, b],[c, d]], the inverse is 1/(ad-bc) multiplied by [[d,-b],[-c, a]]. The determinant supplies the scalar denominator. The diagonal entries a and d exchange positions, while the off-diagonal entries b and c change signs. These three structural steps are the complete 2x2 inverse rule used by the calculator.
The formula is not a generic instruction to divide every original entry by the determinant. The entries are rearranged before the division: d moves to the top left, a moves to the bottom right, and the off-diagonal values become -b and -c. A common hand error is to keep the original diagonal order or to change the sign of only one off-diagonal entry.
The handler returns the inverse matrix as text and also returns the determinant as a numeric result. The text form keeps the brackets and row arrangement visible. Because the inverse entries are divisions, decimal values are normal even when the input matrix contains integers. The determinant result helps you inspect the shared denominator independently.
The inverse formula contains 1/(ad-bc). If the determinant is zero, the formula would require division by zero. More fundamentally, a zero determinant means the matrix does not have a two-sided inverse in the ordinary real-number matrix setting. The calculator checks this exact condition and rejects the inverse operation when the determinant equals zero.
The determinant operation remains available for a singular matrix because calculating det is still meaningful. Selecting determinant can confirm the zero condition and explain why inverse is unavailable. This separation is useful in a worksheet: first identify whether the matrix is singular, then apply the inverse formula only when the denominator is nonzero.
Do not replace a zero determinant with a very small number to force an inverse. That changes the input and can produce a large, misleading result. If a real data process produces a determinant close to zero, questions about precision and conditioning require a numerical analysis outside this small calculator. The page uses the exact numeric zero check defined by its handler.
Use the matrix [[4,7],[2,6]]. The determinant is 10, so the inverse factor is 1/10. Swap the diagonal entries to obtain 6 and 4. Negate the off-diagonal entries to obtain -7 and -2. Divide each by 10. The inverse is [[0.6,-0.7],[-0.2,0.4]] in ordinary decimal notation, and the calculator returns the determinant 10 alongside that matrix text.
The signs are part of the result. The top-right entry is negative because it comes from -b, and the bottom-left entry is negative because it comes from -c. The two diagonal values remain positive here because d and a are positive and the determinant is positive. A different sign pattern in the input would flow through the same rearrangement and division steps.
This example can be checked by multiplying the original matrix by the displayed inverse. The top-left product is 4 x 0.6 plus 7 x -0.2, which equals 1. The top-right product is 4 x -0.7 plus 7 x 0.4, which equals 0. The other row follows the same pattern, producing the identity matrix apart from ordinary decimal representation.
Matrix multiplication is a useful independent check even though it is not an operation offered by this page. To verify a proposed inverse B for matrix A, multiply A by B and compare the result with the 2x2 identity matrix [[1,0],[0,1]]. Each entry is a row-by-column dot product. The diagonal products should add to one, and the off-diagonal products should add to zero under exact arithmetic.
For A = [[a, b],[c, d]] and B = [[d/Delta,-b/Delta],[-c/Delta, a/Delta]], the top-left entry of A B is (a d - b c)/Delta, which is one when Delta is the determinant. The top-right entry is (-a b + b a)/Delta, which is zero. The bottom row follows the same cancellation. This derivation explains why the formula works rather than asking you to trust a memorized pattern.
Decimal display can make a theoretically zero value appear as a tiny residue in a separate hand calculation. Compare with an appropriate tolerance when using ordinary floating-point arithmetic, and keep the symbolic determinant relationship visible. The calculator itself rejects a determinant that is exactly zero under its numeric check; it does not perform a broader near-singularity assessment.
For a 2x2 real matrix, the determinant is a compact algebraic summary of the two diagonal products. In a linear-transformation interpretation, its absolute value is associated with area scaling and its sign is associated with orientation, while a zero value indicates collapse of the two-dimensional area information. Those interpretations require a stated matrix context; this page itself only calculates the scalar formula.
A determinant of one does not mean the matrix is the identity matrix. Many different matrices can have determinant one, and the determinant alone does not reveal every entry or every transformation effect. Similarly, a negative determinant does not mean the matrix is invalid. It can reflect the arrangement and sign of the entries under the same formula.
The determinant is also the denominator used by the inverse rule. That connection is the most direct reason to read both outputs together. If the determinant is small but nonzero, the inverse entries may be large in ordinary arithmetic. Interpreting whether that sensitivity matters in a real model needs more information than four entries and is outside the page's narrow computation.
Each input is checked as a finite number in the supported range. Products such as a d and b c can be large even when every individual entry is within its bound. The result helper rejects a nonfinite numeric determinant rather than emitting infinity. For inverse mode, a nonfinite divided entry is also rejected through the same result protection. This keeps the displayed output a finite calculation under the browser's number model.
The numeric bounds are a page-level contract for predictable browser work. They are not a statement about the largest matrix entries mathematics can describe, the precision needed by a scientific calculation, or the safe range for a production numerical system. If your problem requires exact integers beyond ordinary safe numeric representation, interval analysis, or arbitrary precision, use a tool designed for that representation.
A large finite value can still be inappropriate for the surrounding model. The calculator knows only four numbers and one operation. It cannot assess measurement uncertainty, units, scaling, condition number, or whether rounding changes a decision. Treat the output as the result of the displayed formula, then apply the numerical standards of the domain separately.
The determinant is returned as a numeric result with a displayed precision setting. The inverse is returned as text containing two bracketed rows and the computed decimal quotients. The text format keeps the matrix arrangement explicit, but it is still a representation of numeric values rather than a symbolic fraction engine. A value such as 0.6 may be mathematically equal to 3/5, yet the page does not promise to rewrite every quotient into a reduced fraction.
Do not infer additional accuracy from trailing digits. The browser stores ordinary JavaScript numbers, and the display format controls how a result is shown. If you need a particular number of significant figures or an exact rational form, apply that policy in a system that knows the precision requirement. Retain the original inputs and determinant when reporting a result so another reader can reproduce the calculation.
For an inverse, compare both the matrix text and the separate determinant output. A missing minus sign, swapped diagonal, or copied row break changes the meaning even if individual decimal values look plausible. The brackets are part of the visual contract: the first pair is the first row and the second pair is the second row.
The most common layout mistake is entering the second-row values in the wrong order. If the source matrix is [[4,7],[2,6]], entering c = 6 and d = 2 creates [[4,7],[6,2]], whose determinant and inverse are different. A second mistake is using a plus sign between diagonal products. Write ad - bc before entering values and preserve the subtraction explicitly.
For the inverse, remember that d and a exchange places while b and c are negated. Dividing the original entries in place is not the inverse formula. Another mistake is applying the inverse rule when the determinant is zero or assuming that a very small determinant is automatically safe. Calculate and inspect Delta before using the rearranged matrix.
Finally, distinguish a matrix operation from a list operation. Four numbers separated by commas are not enough to describe row and column positions unless the order is known. Do not paste labels, units, brackets, or an extra row into numeric fields. Clear field-by-field input makes both the handler and a human reviewer see the same matrix.
This calculator intentionally stops at 2x2 matrices. It does not accept a third row or column, calculate a 3x3 determinant, perform Gaussian elimination, compute a general adjugate, or choose pivot rows. Those operations have different input structures and more opportunities for numerical and transcription errors. Keeping them out of the page makes the displayed 2x2 formula complete rather than suggesting that a four-field shortcut generalizes automatically.
A larger matrix should be entered into a method that represents its full dimensions and operation. The appropriate method may use row reduction, a decomposition, or another algebraic routine depending on the purpose and numeric requirements. Do not calculate an upper-left 2x2 block and call it the inverse of a larger matrix. A submatrix can be useful in a larger analysis, but it is not the whole object.
The same boundary applies to other matrix properties. This page does not calculate eigenvalues, eigenvectors, rank, trace, products, systems of equations, or condition estimates. It can supply a correct 2x2 determinant or inverse for a problem whose contract is exactly that small. It cannot certify a broader linear-algebra result merely because four entries were available.
The page is useful for an algebra exercise, a quick determinant check, a hand-derived inverse, or a small linear-system example whose coefficient matrix is exactly 2x2. It can also serve as a transparent reference when teaching why a determinant controls invertibility and why the inverse formula swaps and negates particular entries. The result steps make the arithmetic inspectable rather than hiding it behind a general-purpose solver.
It is not a complete solver for an applied model. The calculator does not know what the entries measure, whether the matrix is a transformation, a coefficient system, a covariance-like object, or a bookkeeping arrangement. It does not validate units, measurement quality, boundary conditions, or a real-world decision based on the result. Those questions require the surrounding equations and domain assumptions.
When copying the result, preserve the matrix layout, selected operation, determinant, and any precision convention. If another reader can reconstruct [[a, b],[c, d]] and see whether the determinant was nonzero, the result is much easier to review. A small exact contract is valuable when it is not stretched into advice about a problem the page does not model.
Write the matrix as [[a, b],[c, d]] and enter its four entries in the matching positions. Choose Determinant or Inverse explicitly. For determinant, compute ad - bc and accept a zero result as a meaningful singular value. For inverse, compute the same determinant first and continue only when it is nonzero.
If inverse is selected, form [[d,-b],[-c, a]], divide every entry by the determinant, and read the returned two-row text together with the numeric determinant. Check the diagonal swap and both off-diagonal signs. For a small example, multiply the original matrix by the proposed inverse and compare with the identity matrix.
Finally, respect the 2x2 boundary. The calculator validates finite real entries, protects against nonfinite results, and reports the defining formula, but it does not perform broader matrix analysis or make a domain decision. Larger matrices and richer operations require a different input contract. Used within that boundary, the page gives a short, auditable path from four entries to a determinant or a valid inverse.
Calculate the determinant or inverse of a two-by-two matrix with the defining formula shown.
det([[a,b],[c,d]]) = ad - bc; inverse = 1/(ad-bc) [[d,-b],[-c,a]]. The scope is deliberately limited to 2x2 matrices so the displayed operation is complete and auditable.
Enter Matrix a, Matrix b, Matrix c, Matrix d, Operation, then choose Calculate.
The inverse exists only when the determinant is nonzero. Entries are real numbers.
This calculator is part of the WorldCalculate library. Its formula, example, assumptions, input bounds, and output formatting follow the official methodology.
These WorldCalculate collections connect this tool with related questions while keeping each calculation separate and transparent.