{"id":67643,"date":"2026-11-29T17:57:20","date_gmt":"2026-11-29T14:57:20","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=67643"},"modified":"2026-11-29T17:57:20","modified_gmt":"2026-11-29T14:57:20","slug":"matrix-calculator","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/mathematics\/matrix-calculator\/","title":{"rendered":"Matrix Calculator"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Add, Multiply, Transpose, Invert and Solve with Fractions<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"67643\" data-favorite-title=\"Matrix\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/mathematics\/matrix-calculator\/\" data-favorite-excerpt=\"Add, subtract, multiply, transpose, invert, take the determinant, rank, trace or RREF of matrices up to 6 \u00d7 6 \u2014 or solve A \u00b7 x = b. Enter your numbers or fractions and pick an operation; results are exact, with optional step-by-step working.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-algebra\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/mathematics\/matrix-calculator\/\" method=\"POST\" class=\"calculator\" id=\"calculator-67643\" data-post=\"67643\"><fieldset class=\"fieldset-input is-3\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">Operation<\/label><div class=\"grid grid-cols-1\"><select id=\"field-1\" name=\"operation\"><option value=\"add\">A + B (add)<\/option><option value=\"sub\">A \u2212 B (subtract)<\/option><option value=\"mul\">A \u00d7 B (multiply)<\/option><option value=\"scalar\">k \u00b7 A (scalar multiple)<\/option><option value=\"transpose\">A\u1d40 (transpose)<\/option><option value=\"det\">det(A) (determinant)<\/option><option value=\"inv\">A\u207b\u00b9 (inverse)<\/option><option value=\"rank\">rank(A)<\/option><option value=\"trace\">tr(A) (trace)<\/option><option value=\"pow\">A^n (power)<\/option><option value=\"rref\">RREF(A) (row reduce)<\/option><option value=\"solve\">Solve A \u00b7 x = b<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field is-single has-term\" id=\"input-2\" hidden><label for=\"field-2\">Scalar (k)<\/label><div class=\"term\">k<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"text\" name=\"scalar_k\" id=\"field-2\" aria-describedby=\"calc-info-2\" placeholder=\"e.g. 2 or -3\/4\" step=\"any\" value=\"2\"\/><small id=\"calc-info-2\">Used for k \u00b7 A. Fractions and decimals allowed.<\/small><\/div><div class=\"field is-single has-term\" id=\"input-3\" hidden><label for=\"field-3\">Exponent (n)<\/label><div class=\"term\">n<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"exponent_n\" id=\"field-3\" aria-describedby=\"calc-info-3\" min=\"-100\" max=\"100\" step=\"1\" value=\"2\"\/><small id=\"calc-info-3\">Integer power for A^n. Negative powers need an invertible A.<\/small><\/div><div class=\"field is-checkbox is-single\" id=\"input-4\" hidden><input type=\"checkbox\" id=\"field-4\" value=\"1\"\/><label for=\"field-4\">Show steps<\/label><\/div><div class=\"is-single field\" id=\"input-5\"><span class=\"font-semibold\">Matrix A<\/span><\/div><div class=\"field\" id=\"input-6\"><label for=\"field-6\">A rows<\/label><div class=\"grid grid-cols-1\"><select id=\"field-6\" name=\"a_rows\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-7\"><label for=\"field-7\">A cols<\/label><div class=\"grid grid-cols-1\"><select id=\"field-7\" name=\"a_cols\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-8\"><label for=\"field-8\">A\u2081\u2081<\/label><input type=\"text\" name=\"a\" id=\"field-8\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"2\"\/><\/div><div class=\"field\" id=\"input-9\"><label for=\"field-9\">A\u2081\u2082<\/label><input type=\"text\" name=\"a\" id=\"field-9\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"1\"\/><\/div><div class=\"field\" id=\"input-10\"><label for=\"field-10\">A\u2081\u2083<\/label><input type=\"text\" name=\"a\" id=\"field-10\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-11\" hidden><label for=\"field-11\">A\u2081\u2084<\/label><input type=\"text\" name=\"a\" id=\"field-11\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-12\" hidden><label for=\"field-12\">A\u2081\u2085<\/label><input type=\"text\" name=\"a\" id=\"field-12\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-13\" hidden><label for=\"field-13\">A\u2081\u2086<\/label><input type=\"text\" name=\"a\" id=\"field-13\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-14\"><label for=\"field-14\">A\u2082\u2081<\/label><input type=\"text\" name=\"a\" id=\"field-14\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"1\"\/><\/div><div class=\"field\" id=\"input-15\"><label for=\"field-15\">A\u2082\u2082<\/label><input type=\"text\" name=\"a\" id=\"field-15\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"3\"\/><\/div><div class=\"field\" id=\"input-16\"><label for=\"field-16\">A\u2082\u2083<\/label><input type=\"text\" name=\"a\" id=\"field-16\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"1\"\/><\/div><div class=\"field\" id=\"input-17\" hidden><label for=\"field-17\">A\u2082\u2084<\/label><input type=\"text\" name=\"a\" id=\"field-17\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-18\" hidden><label for=\"field-18\">A\u2082\u2085<\/label><input type=\"text\" name=\"a\" id=\"field-18\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-19\" hidden><label for=\"field-19\">A\u2082\u2086<\/label><input type=\"text\" name=\"a\" id=\"field-19\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-20\"><label for=\"field-20\">A\u2083\u2081<\/label><input type=\"text\" name=\"a\" id=\"field-20\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-21\"><label for=\"field-21\">A\u2083\u2082<\/label><input type=\"text\" name=\"a\" id=\"field-21\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"1\"\/><\/div><div class=\"field\" id=\"input-22\"><label for=\"field-22\">A\u2083\u2083<\/label><input type=\"text\" name=\"a\" id=\"field-22\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"2\"\/><\/div><div class=\"field\" id=\"input-23\" hidden><label for=\"field-23\">A\u2083\u2084<\/label><input type=\"text\" name=\"a\" id=\"field-23\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-24\" hidden><label for=\"field-24\">A\u2083\u2085<\/label><input type=\"text\" name=\"a\" id=\"field-24\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-25\" hidden><label for=\"field-25\">A\u2083\u2086<\/label><input type=\"text\" name=\"a\" id=\"field-25\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-26\" hidden><label for=\"field-26\">A\u2084\u2081<\/label><input type=\"text\" name=\"a\" id=\"field-26\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-27\" hidden><label for=\"field-27\">A\u2084\u2082<\/label><input type=\"text\" name=\"a\" id=\"field-27\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-28\" hidden><label for=\"field-28\">A\u2084\u2083<\/label><input type=\"text\" name=\"a\" id=\"field-28\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-29\" hidden><label for=\"field-29\">A\u2084\u2084<\/label><input type=\"text\" name=\"a\" id=\"field-29\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-30\" hidden><label for=\"field-30\">A\u2084\u2085<\/label><input type=\"text\" name=\"a\" id=\"field-30\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-31\" hidden><label for=\"field-31\">A\u2084\u2086<\/label><input type=\"text\" name=\"a\" id=\"field-31\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-32\" hidden><label for=\"field-32\">A\u2085\u2081<\/label><input type=\"text\" name=\"a\" id=\"field-32\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-33\" hidden><label for=\"field-33\">A\u2085\u2082<\/label><input type=\"text\" name=\"a\" id=\"field-33\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-34\" hidden><label for=\"field-34\">A\u2085\u2083<\/label><input type=\"text\" name=\"a\" id=\"field-34\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-35\" hidden><label for=\"field-35\">A\u2085\u2084<\/label><input type=\"text\" name=\"a\" id=\"field-35\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-36\" hidden><label for=\"field-36\">A\u2085\u2085<\/label><input type=\"text\" name=\"a\" id=\"field-36\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-37\" hidden><label for=\"field-37\">A\u2085\u2086<\/label><input type=\"text\" name=\"a\" id=\"field-37\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-38\" hidden><label for=\"field-38\">A\u2086\u2081<\/label><input type=\"text\" name=\"a\" id=\"field-38\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-39\" hidden><label for=\"field-39\">A\u2086\u2082<\/label><input type=\"text\" name=\"a\" id=\"field-39\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-40\" hidden><label for=\"field-40\">A\u2086\u2083<\/label><input type=\"text\" name=\"a\" id=\"field-40\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-41\" hidden><label for=\"field-41\">A\u2086\u2084<\/label><input type=\"text\" name=\"a\" id=\"field-41\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-42\" hidden><label for=\"field-42\">A\u2086\u2085<\/label><input type=\"text\" name=\"a\" id=\"field-42\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-43\" hidden><label for=\"field-43\">A\u2086\u2086<\/label><input type=\"text\" name=\"a\" id=\"field-43\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"is-single field\" id=\"input-44\"><span class=\"font-semibold\">Matrix B<\/span><\/div><div class=\"field\" id=\"input-45\"><label for=\"field-45\">B rows<\/label><div class=\"grid grid-cols-1\"><select id=\"field-45\" name=\"b_rows\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-46\"><label for=\"field-46\">B cols<\/label><div class=\"grid grid-cols-1\"><select id=\"field-46\" name=\"b_cols\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-47\"><label for=\"field-47\">B\u2081\u2081<\/label><input type=\"text\" name=\"b\" id=\"field-47\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"1\"\/><\/div><div class=\"field\" id=\"input-48\"><label for=\"field-48\">B\u2081\u2082<\/label><input type=\"text\" name=\"b\" id=\"field-48\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"2\"\/><\/div><div class=\"field\" id=\"input-49\"><label for=\"field-49\">B\u2081\u2083<\/label><input type=\"text\" name=\"b\" id=\"field-49\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"3\"\/><\/div><div class=\"field\" id=\"input-50\" hidden><label for=\"field-50\">B\u2081\u2084<\/label><input type=\"text\" name=\"b\" id=\"field-50\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-51\" hidden><label for=\"field-51\">B\u2081\u2085<\/label><input type=\"text\" name=\"b\" id=\"field-51\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-52\" hidden><label for=\"field-52\">B\u2081\u2086<\/label><input type=\"text\" name=\"b\" id=\"field-52\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-53\"><label for=\"field-53\">B\u2082\u2081<\/label><input type=\"text\" name=\"b\" id=\"field-53\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"4\"\/><\/div><div class=\"field\" id=\"input-54\"><label for=\"field-54\">B\u2082\u2082<\/label><input type=\"text\" name=\"b\" id=\"field-54\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"5\"\/><\/div><div class=\"field\" id=\"input-55\"><label for=\"field-55\">B\u2082\u2083<\/label><input type=\"text\" name=\"b\" id=\"field-55\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"6\"\/><\/div><div class=\"field\" id=\"input-56\" hidden><label for=\"field-56\">B\u2082\u2084<\/label><input type=\"text\" name=\"b\" id=\"field-56\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-57\" hidden><label for=\"field-57\">B\u2082\u2085<\/label><input type=\"text\" name=\"b\" id=\"field-57\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-58\" hidden><label for=\"field-58\">B\u2082\u2086<\/label><input type=\"text\" name=\"b\" id=\"field-58\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-59\"><label for=\"field-59\">B\u2083\u2081<\/label><input type=\"text\" name=\"b\" id=\"field-59\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"7\"\/><\/div><div class=\"field\" id=\"input-60\"><label for=\"field-60\">B\u2083\u2082<\/label><input type=\"text\" name=\"b\" id=\"field-60\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"8\"\/><\/div><div class=\"field\" id=\"input-61\"><label for=\"field-61\">B\u2083\u2083<\/label><input type=\"text\" name=\"b\" id=\"field-61\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"9\"\/><\/div><div class=\"field\" id=\"input-62\" hidden><label for=\"field-62\">B\u2083\u2084<\/label><input type=\"text\" name=\"b\" id=\"field-62\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-63\" hidden><label for=\"field-63\">B\u2083\u2085<\/label><input type=\"text\" name=\"b\" id=\"field-63\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-64\" hidden><label for=\"field-64\">B\u2083\u2086<\/label><input type=\"text\" name=\"b\" id=\"field-64\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-65\" hidden><label for=\"field-65\">B\u2084\u2081<\/label><input type=\"text\" name=\"b\" id=\"field-65\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-66\" hidden><label for=\"field-66\">B\u2084\u2082<\/label><input type=\"text\" name=\"b\" id=\"field-66\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-67\" hidden><label for=\"field-67\">B\u2084\u2083<\/label><input type=\"text\" name=\"b\" id=\"field-67\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-68\" hidden><label for=\"field-68\">B\u2084\u2084<\/label><input type=\"text\" name=\"b\" id=\"field-68\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-69\" hidden><label for=\"field-69\">B\u2084\u2085<\/label><input type=\"text\" name=\"b\" id=\"field-69\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-70\" hidden><label for=\"field-70\">B\u2084\u2086<\/label><input type=\"text\" name=\"b\" id=\"field-70\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-71\" hidden><label for=\"field-71\">B\u2085\u2081<\/label><input type=\"text\" name=\"b\" id=\"field-71\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-72\" hidden><label for=\"field-72\">B\u2085\u2082<\/label><input type=\"text\" name=\"b\" id=\"field-72\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-73\" hidden><label for=\"field-73\">B\u2085\u2083<\/label><input type=\"text\" name=\"b\" id=\"field-73\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-74\" hidden><label for=\"field-74\">B\u2085\u2084<\/label><input type=\"text\" name=\"b\" id=\"field-74\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-75\" hidden><label for=\"field-75\">B\u2085\u2085<\/label><input type=\"text\" name=\"b\" id=\"field-75\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-76\" hidden><label for=\"field-76\">B\u2085\u2086<\/label><input type=\"text\" name=\"b\" id=\"field-76\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-77\" hidden><label for=\"field-77\">B\u2086\u2081<\/label><input type=\"text\" name=\"b\" id=\"field-77\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-78\" hidden><label for=\"field-78\">B\u2086\u2082<\/label><input type=\"text\" name=\"b\" id=\"field-78\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-79\" hidden><label for=\"field-79\">B\u2086\u2083<\/label><input type=\"text\" name=\"b\" id=\"field-79\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-80\" hidden><label for=\"field-80\">B\u2086\u2084<\/label><input type=\"text\" name=\"b\" id=\"field-80\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-81\" hidden><label for=\"field-81\">B\u2086\u2085<\/label><input type=\"text\" name=\"b\" id=\"field-81\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><div class=\"field\" id=\"input-82\" hidden><label for=\"field-82\">B\u2086\u2086<\/label><input type=\"text\" name=\"b\" id=\"field-82\" placeholder=\"a\/b or 0.5\" step=\"any\" value=\"0\"\/><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"67643\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Matrix Results<\/h3><div class=\"result-box\"><div class=\"field-result is-column\" id=\"output-1\"><span class=\"field-title\"><span>Result (exact form)<\/span><\/span><span class=\"field-value\" id=\"result-1\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-2\"><span class=\"field-title\"><span>Decimal approximation<\/span><\/span><span class=\"field-value\" id=\"result-2\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-3\"><span class=\"field-title\"><span>Solution steps<\/span><\/span><span class=\"field-value\" id=\"result-3\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-4\"><span class=\"field-title\"><span>Export result \/ continue<\/span><\/span><span class=\"field-value\" id=\"result-4\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"67643\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Matrix Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ (A + B)_{ij} = a_{ij} + b_{ij} \\qquad (A - B)_{ij} = a_{ij} - b_{ij} \\qquad (k \\cdot A)_{ij} = k \\, a_{ij} \\qquad \\left(A^{\\mathsf{T}}\\right)_{ij} = a_{ji} \\]\n\\[ (A \\times B)_{ij} = \\sum_{k=1}^{n} a_{ik} \\, b_{kj} \\]\n\\[ A^{-1} = \\frac{1}{\\det(A)} \\, \\operatorname{adj}(A) \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(a_{ij}\\) \u2014 the entry of matrix \\(A\\) in row \\(i\\), column \\(j\\)<\/li>\n<li>\\(b_{ij}\\) \u2014 the entry of matrix \\(B\\) in row \\(i\\), column \\(j\\)<\/li>\n<li>\\(k\\) \u2014 a scalar (integer, decimal or fraction)<\/li>\n<li>\\(n\\) \u2014 the number of columns of \\(A\\); for the product \\(A \\times B\\) it must equal the number of rows of \\(B\\)<\/li>\n<li>\\(\\operatorname{adj}(A)\\) \u2014 the adjugate (transpose of the cofactor matrix) of \\(A\\)<\/li>\n<\/ul>\n<p>Each entry of a sum, difference or scalar multiple is computed position by position. The matrix product is different: every entry is a dot product of a row of \\(A\\) with a column of \\(B\\). The inverse exists only when \\(\\det(A) \\neq 0\\).<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Matrix \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> add the two default 3 \u00d7 3 matrices, \\(A = \\begin{bmatrix} 2 &amp; 1 &amp; 0 \\\\ 1 &amp; 3 &amp; 1 \\\\ 0 &amp; 1 &amp; 2 \\end{bmatrix}\\) and \\(B = \\begin{bmatrix} 1 &amp; 2 &amp; 3 \\\\ 4 &amp; 5 &amp; 6 \\\\ 7 &amp; 8 &amp; 9 \\end{bmatrix}\\).<\/p>\n<p>\\[ A + B = \\begin{bmatrix} 2+1 &amp; 1+2 &amp; 0+3 \\\\ 1+4 &amp; 3+5 &amp; 1+6 \\\\ 0+7 &amp; 1+8 &amp; 2+9 \\end{bmatrix} = \\begin{bmatrix} 3 &amp; 3 &amp; 3 \\\\ 5 &amp; 8 &amp; 7 \\\\ 7 &amp; 9 &amp; 11 \\end{bmatrix} \\]<\/p>\n<p><strong>Result:<\/strong> each entry is the sum of the two entries in the same position, giving the 3 \u00d7 3 matrix shown above. Click <em>Calculate<\/em> with the default values to reproduce this exactly, including the decimal approximation and the copy buttons.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Matrix Calculator<\/h2>\n<ol>\n<li>Open the <strong>Operation<\/strong> dropdown and choose what you want: <em>A + B (add)<\/em>, <em>A \u2212 B (subtract)<\/em>, <em>A \u00d7 B (multiply)<\/em>, <em>k \u00b7 A (scalar multiple)<\/em>, <em>A\u1d40 (transpose)<\/em>, <em>det(A) (determinant)<\/em>, <em>A\u207b\u00b9 (inverse)<\/em>, <em>rank(A)<\/em>, <em>tr(A) (trace)<\/em>, <em>A^n (power)<\/em>, <em>RREF(A) (row reduce)<\/em> or <em>Solve A \u00b7 x = b<\/em>.<\/li>\n<li>Extra fields appear when needed: enter a number or fraction in <strong>Scalar (k)<\/strong> for a scalar multiple, an integer in <strong>Exponent (n)<\/strong> for a power, and tick <strong>Show steps<\/strong> to see the working for determinants and inverses.<\/li>\n<li>Set the size of matrix A with <strong>A rows<\/strong> and <strong>A cols<\/strong> \u2014 anything from 1 \u00d7 1 up to 6 \u00d7 6. Only the visible cells remain.<\/li>\n<li>Type the entries of A into the fields <strong>A\u2081\u2081<\/strong>, <strong>A\u2081\u2082<\/strong>, \u2026 Integers, decimals such as <code>1.5<\/code> and fractions such as <code>3\/4<\/code> are all accepted; empty cells count as 0.<\/li>\n<li>For two-matrix operations, also fill in <strong>B rows<\/strong>, <strong>B cols<\/strong> and the B entries. For <em>Solve A \u00b7 x = b<\/em>, the first column of B is used as the vector b.<\/li>\n<li>Click <strong>Calculate<\/strong>. The result appears in exact form, with a decimal approximation. Use the buttons under <em>Export result \/ continue<\/em> to copy it as text or LaTeX, or to load it back into matrix A for the next step.<\/li>\n<\/ol>\n<h2>What Is a Matrix and Why Do These Operations Matter?<\/h2>\n<p>A matrix is a rectangular array of numbers arranged in rows and columns. It is the standard way to compactly describe a system of linear equations, a transformation of space, a table of data or a set of network connections. Each entry \\(a_{ij}\\) sits at the crossing of row \\(i\\) and column \\(j\\), and the size of the matrix \u2014 rows first, then columns \u2014 determines which operations make sense.<\/p>\n<p>The basic operations behave differently, and the difference matters. Addition and subtraction are entrywise: both matrices must have exactly the same size. Multiplication by a scalar stretches every entry by the same factor \u2014 our dedicated <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/matrix-scalar-multiplication-calculator\/\">matrix scalar multiplication calculator<\/a> covers just that case. Matrix multiplication is <em>not<\/em> entrywise: it combines rows with columns, which is why \\(A \\times B\\) needs the columns of A to match the rows of B, and why \\(A \\times B\\) is generally different from \\(B \\times A\\).<\/p>\n<p>Several operations work on a single square matrix. The <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/matrix-determinant-calculator\/\">determinant<\/a> condenses a matrix into one number that measures how the matrix scales area or volume; a determinant of zero means the matrix has no inverse. The inverse \\(A^{-1}\\) undoes the action of \\(A\\), and is the key to solving \\(A \\cdot x = b\\) as \\(x = A^{-1} b\\). The transpose flips a matrix across its diagonal \u2014 a quick job for the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/matrix-transpose-calculator\/\">matrix transpose calculator<\/a> \u2014 while the trace, the sum of the diagonal entries, is explained in the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/matrix-trace-calculator\/\">matrix trace calculator<\/a>. The rank counts the genuinely independent rows and the RREF (reduced row echelon form) is the fully simplified version of a matrix, both useful for checking whether a system has one solution, many solutions or none.<\/p>\n<p>To interpret the output: a matrix result is shown as a table in the same orientation as the operation implies; a scalar result (determinant, rank or trace) is shown as a single number; and the solver returns the vector \\(x\\) with each component labelled. Because all arithmetic is done with exact fractions, the exact result is always mathematically precise, while the decimal view is a rounded approximation.<\/p>\n<h2>Limitations and Practical Tips<\/h2>\n<ul>\n<li><strong>Size limit:<\/strong> matrices can be at most 6 \u00d7 6. Operations that only make sense for square matrices (determinant, inverse, trace, power, solving) require A rows = A cols and will show an error otherwise.<\/li>\n<li><strong>Exact fractions:<\/strong> decimals such as <code>0.1<\/code> are converted to exact fractions internally, so results like \\(\\tfrac{1}{3}\\) appear without rounding error. Only integers, decimals and fractions are accepted \u2014 no variables, square roots or complex numbers.<\/li>\n<li><strong>Singular matrices:<\/strong> if det(A) = 0, the inverse and negative powers do not exist and the calculator will tell you. If a linear system is inconsistent or has infinitely many solutions, no unique solution vector can be returned.<\/li>\n<li><strong>Exponent range:<\/strong> A^n accepts integer exponents from \u2212100 to 100; negative powers require an invertible matrix.<\/li>\n<li><strong>Chain operations:<\/strong> use the <em>Use result as matrix A<\/em> button to pipe an answer straight into the next calculation \u2014 for example multiply A \u00d7 B, then take the determinant of the result.<\/li>\n<li><strong>Check your work:<\/strong> for a computed inverse, verify that \\(A \\times A^{-1} = I\\) by switching the operation to multiply and using <em>Use result as matrix A<\/em>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Add, subtract, multiply, transpose, invert, take the determinant, rank, trace or RREF of matrices up to 6 \u00d7 6 \u2014 or solve A \u00b7 x = b. Enter your numbers or fractions and pick an operation; results are exact, with optional step-by-step working.<\/p>\n","protected":false},"author":3168,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[69],"class_list":["post-67643","post","type-post","status-publish","format-standard","hentry","category-mathematics","tag-matrix"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/3168"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=67643"}],"version-history":[{"count":1,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67643\/revisions"}],"predecessor-version":[{"id":67644,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67643\/revisions\/67644"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=67643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=67643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=67643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}