Singular or Nonsingular Matrix Calculator

Test any square matrix with clear determinant checks fast. Review rank, inverse status, and pivots. Download results for simple records, notes, and quick reports.

Calculator Inputs

Matrix Entries

Enter decimals, integers, or fractions. Use a square matrix from 2 × 2 through 5 × 5.

Reset

Example Data Table

Matrix Determinant Classification Reason
[1, 2]
[2, 4]
0 Singular Second row is a multiple of the first row.
[3, 1]
[2, 5]
13 Nonsingular Determinant is not zero.
[1, 0, 2]
[2, 1, 3]
[3, 1, 5]
0 Singular Third row equals the sum of the first two rows.
[2, 1, 3]
[1, 0, 2]
[4, 1, 8]
-1 Nonsingular Rank equals matrix size.

Formula Used

Singular condition: A square matrix A is singular when det(A) = 0.

Nonsingular condition: A square matrix A is nonsingular when det(A) ≠ 0.

Rank condition: A is nonsingular when rank(A) = n for an n × n matrix.

Nullity: nullity(A) = n - rank(A).

Elimination determinant: det(A) = (-1)s × product of pivots, where s is the number of row swaps.

How To Use This Calculator

  1. Select the square matrix size.
  2. Enter each matrix value in the matching row and column field.
  3. Use fractions, decimals, negative numbers, or integers.
  4. Set a zero tolerance for rounded or measured data.
  5. Choose the number of decimal places for the output.
  6. Press Calculate to see the result above the form.
  7. Download the result as CSV or PDF when needed.

Advanced Matrix Testing

A square matrix is singular when its determinant is zero. It is nonsingular when its determinant is not zero. This calculator checks that condition with row reduction. It also reports rank, nullity, pivots, row swaps, and inverse status. These details help students see more than one final label.

Why Singularity Matters

Singularity tells whether a matrix has a unique inverse. A nonsingular coefficient matrix gives one solution in many linear systems. A singular matrix can create no solution or many solutions. The result depends on the right side vector. In engineering, finance, graphics, and statistics, this test helps detect weak models, duplicate equations, and dependent variables.

What The Tool Checks

The calculator starts with a selected square size. It accepts decimals, negative values, and fractions. The script uses Gaussian elimination with partial pivoting. A tolerance setting controls when a small pivot is treated as zero. That is useful when entries come from measurements or rounded data. The determinant is built from pivots and row swaps. Rank is counted from independent pivot rows.

How To Read The Output

If the determinant is zero within tolerance, the matrix is classified as singular. The nullity shows the number of free variables. A positive nullity means the columns are dependent. If the determinant is outside tolerance, the matrix is nonsingular. The inverse table then becomes available. The pivot list shows which columns drive independence.

Good Input Practice

Use exact fractions when values are known exactly. Use decimals for measured values. Pick a tolerance that matches your data quality. A very large tolerance can mark useful matrices as singular. A very small tolerance can hide numerical problems. For classroom examples, the default setting usually works well.

Study And Export Uses

The export buttons help save calculations for assignments, checks, and reports. CSV is useful for spreadsheets. PDF is useful for printing or sharing. The example table gives quick tests before using custom data. You can copy its values into the form and compare the result. This makes the calculator practical for learning, verification, and documentation.

For better notes, keep the chosen tolerance beside every final answer. This context explains borderline results and helps reviewers repeat the same calculation later without confusion easily.

FAQs

What is a singular matrix?

A singular matrix has a determinant equal to zero. It has no inverse. Its rows or columns are linearly dependent.

What is a nonsingular matrix?

A nonsingular matrix has a nonzero determinant. It has full rank, independent columns, and an inverse.

Which test does this calculator use?

The determinant test is the direct check. For an n by n matrix, det(A)=0 means singular. det(A) not equal to zero means nonsingular.

Why does tolerance matter?

Tolerance decides when a very small pivot is treated as zero. It helps when entries contain rounded decimals or measured data.

Can I enter fractions?

Yes. Enter values like 3/4 or -5/2. The calculator converts them before row reduction.

What does rank mean here?

Rank counts independent rows or columns. A square matrix is nonsingular only when its rank equals its size.

Why is the inverse not shown?

The inverse appears only when the determinant is not zero within tolerance. Singular matrices do not have an inverse.

When should I export the result?

Use CSV for spreadsheets and PDF for printable records. Both exports include the matrix and key classification results.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.