Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Trending
  • NEWS
  • Blogs
  • Tips & Tricks
  • Website & Apps
  • Tech Tips
  • Tech Blogs
  • ChatGPT Blogs
  • Tech News
  • AI News
  • ChatGPT News
  • ChatGPT Tutorial
Open In App
Next Article:
How to Make a Chart in Google Docs
Next article icon

How To Make a Matrix In Google Docs

Last Updated : 10 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

How to Insert Matrix in Google Docs - Quick Steps

  1. Open your Google Docs document.
  2. Click where you want the matrix.
  3. Go to "Insert" Tab >> Go to Equation >> choose "Insert equation."
  4. Use the provided matrix template >>Fill in your matrix values.
  5. Click outside the equation box to exit.
  6. Your matrix is now seamlessly inserted into your Google Docs document!

Need to insert a matrix in your Google Docs document but unsure where to start? Whether you’re working on a complex math problem, organizing data, or trying to display multiple options in a neat, grid-like structure, creating a matrix can help present the information clearly. Google Docs offers multiple ways to create matrices, from using built-in equations to inserting tables or leveraging third-party add-ons.

This guide will walk you through three methods for inserting a matrix in Google Docs, so you can choose the approach that works best for your needs.

How to Make a Matrix in Google Docs by Using Equations

You must use this method to insert a matrix in Google Docs only when your matrix contains two rows. Follow the steps to learn how to insert matrix in Google Docs.

Step 1: Go to Insert and Select Equations

Go to the "Insert" tab and click on the Equation option.

Go to Insert and Select Equations
Insert equation

Step 2: Click on “Mathematical operators” and select “Square brackets”

In the equation ribbon that opens, go to the Maths operation drop-down and click on the square brackets to insert them.

Click on “Mathematical operators” and select “Square brackets”
square brakcets

Step 3: Go to “Mathematical operators” and Select “xba”

If the matrix contains only 1 row, you can simply type the values with spaces:

matrix with one row
matrix with one row

But for getting two rows, you must place the cursor inside the matrix and then select the xba equation from the Maths operation drop-down.

select xba equation
select xba equation

Step 4: Enter the numbers

To add the first column, click on the right arrow on your keyboard so that the cursor moves to the subscript. Type the first value. Then insert the second Value

Enter the numbers
insert the second value

Once that's done, press Enter. You will see that the cursor changes to cover the entire length of the matrix:

Cursor changes to cover the entire length of the matrix
entire length

Step 5: Press the Spacebar

First press space so that the cursor looks like this:

Press the Spacebar
cursor after space

Now, you can repeat the step 4 to add more columns in the matrix:

add all values
add all the values

How to Make a Matrix in Google Docs Using Tables

Using equations to insert a matrix in Google Docs is quite easy. However, they are quite limited in the way that they only allow us to add 2 columns to the matrix. Thus, in order to add as many columns and rows as you desire, you can use tables to insert matrix in Google Docs.

Step 1: Go to Insert and Select Table

Go to the "Insert" tab and insert a table.

Tip: Insert only one row and keep the number of columns two extra than the number of columns you want in the matrix.

Go to Insert and Select Table
insert table

Step 2: Select the table size

Since we are creating a 4 x 3 matrix here, we need 3 columns plus 2 more. So, we will insert a 5 by 1 table.

Select the table size
insert table

Step 3: Add the numbers

Insert the values in the table using the enter key in this manner:

Add the numbers
add all the values

Step 4: Increase the width of the table border

Click anywhere inside the table and go to Table options by clicking on the three dots in the top-right corner.

table-options
table options

In the side pane that opens, click on the Color drop-down and select thickness from the Table border drop-down

table border
table-border

Step 5: Compress the columns

Hover over each column border and once it changes to an arrowhead, drag the border to bring the matrix close together.

compress the columns
compress table

Step 6: Remove the inner borders

To get a matrix structure, you must now remove the column borders highlighted below:

remove highlighted inner borders
remove highlighted borders

To remove a border, simply click on it, and choose 0pt from the Column Border menu in the ribbon.

change columns width
change border width

And there you have your matrix:

result
result

Note: Although this might appear a time consuming method, you only have to do it once. For inserting more matrices, simply copy paste the matrix and change values. You can even enter more rows and columns in the matrix after copy pasting it.

copy paste
Copy paste

How to Make a Matrix in Google Docs by Using a Free Add-on

Now here are steps to make a make a matrix in Google Docs:

Step 1: Go to the Google Workspace marketplace

Follow this link to go to the Google Workspace Marketplace.

Go to the Google Workspace marketplace
Google marketplace

Step 2: Search for the Hypatia and create an extension

Search for Hypatia create (an extension) and click on the first extension that shows up.

Search for the Hypatia and create an extension
Search for the extension

Step 3: Install the extension

Click on the "Install" option to start the installation. Sign in and give permission to allow the download like you normally do.

Install the extension
Install the extension

Step 4: Go to the Insert option

Go to the Google Docs file and open the Hypatia create extension drop-down from the Extension tab. Choose the Insert/Edit Math option from the drop-down.

Go to the Insert option
Insert/edit math

Step 5: Search for the matrix

In the dialog box that opens, click on the search icon present at the bottom right corner and search for matrix.

Search for the matrix
Search for the matrix

Step 6: Insert the matrix

Scroll to see the available matrices and click on the one you wish to insert and click "Insert".

Insert the matrix
Choose and insert the matrix

Step 7: Add values

In the dialog box itself, you can add the values of the matrix. Use the arrow keys to move between the different indices.

Add values
Add the values

Step 8: Click Insert

Once you are satisfied with the matrix, insert it in the Google Docs using the Insert option present at the bottom right corner.

Click Insert
insert the matrix

And here you have your matrix:

resultant matrix
Resultant matrix

Conclusion

Whether you need a quick and simple matrix for your math homework or a more visually appealing matrix for a report or presentation, Google Docs provides several methods to insert a matrix. From using the equation editor for mathematical equations to tables for clear and organized data display or even free add-ons for advanced formatting—there’s a solution for everyone. Choose the method that best fits your project, and you’ll be able to create and customize your matrix with ease in no time.


Next Article
How to Make a Chart in Google Docs

E

everythingtech
Improve
Article Tags :
  • Geeks Premier League
  • News
  • Google Docs
  • Google Workspace
  • Google Docs Tips
  • Geeks Premier League 2023
  • Google Docs Guide

Similar Reads

  • How To Make A Grid In Google Docs
    Creating a grid in Google Docs is a vital skill for anyone aiming to organize content efficiently and improve the aesthetics of their documents. By default, there is no direct method of inserting a grid in Google Docs. But we can make use of tables with the help of different tools that Google Docs p
    5 min read
  • How to Move a Table in Google Docs
    Google Docs, a free online document editor offered by Google, provides an array of features for document creation, editing, collaboration, and storage. Users can initiate a document from scratch or opt for one of its templates. Within Google Docs, you have the flexibility to alter fonts, font colors
    6 min read
  • How to Make a Chart in Google Docs
    Creating a chart in Google Docs is an easy process that enhances your documents with clear, visual data representations. This article will provide step-by-step instructions on how to insert and customize charts in Google Docs, helping you present your information in an engaging and easily understand
    6 min read
  • How to Mail Merge in Google Docs
    Mail merge is a powerful tool for sending personalized emails, letters, and other documents to a large group of recipients. While Microsoft Word is traditionally used for mail merges, Google Docs offers an effective alternative. In this step-by-step guide, we'll show you how to create a mail merge u
    4 min read
  • How to Make Two Columns in Google Docs
    Organizing text into two columns in Google Docs can significantly improve the structure and readability of your documents, making it perfect for articles, newsletters, or academic papers. This is great for things like newsletters or flyers. Google Docs is a tool that many people use for writing beca
    8 min read
  • How to make Labels in Google Docs
    How to Create Plain Labels in Google Docs - Quick StepsOpen Google Docs.Go to "Insert" > "Drawing" > "+ New."Create your label and click "Save and Close."Click on the label, then "Actions" > "Download."Insert the downloaded image into your document.Resize and position the label as needed.Ad
    9 min read
  • How To Add Stars In Google Docs
    Ever thought about making your Google Docs a bit more fun with some stars? Well, you're in luck! It's super easy – like adding a touch of magic to your work. In this quick guide, I'll walk you through turning your regular document into a cool space-themed creation. So, if you're up for making your w
    4 min read
  • How to Make Columns in Google Docs
    Google Docs is utilized by millions worldwide for its robust features that facilitate easy collaboration and document management. Creating columns in Google Docs is a fundamental skill for enhancing the layout and readability of your documents. This feature of making columns in Google Docs is partic
    12 min read
  • How to Insert LaTeX in Google Docs
    Are you looking to incorporate complex mathematical equations and symbols into your Google Docs? Learning how to insert LaTeX in Google Docs allows you to enhance the presentation of scientific, technical, and academic documents. LaTeX is a powerful typesetting system widely used for writing mathema
    6 min read
  • How to Add a Page in Google Docs
    How to Add another page in Google Docs - Quick StepsOpen Google Docs >>Go to the Insert TabSelect Page Breaks>>New Page AddedEver found yourself meticulously crafting a document in Google Docs, only to realize it needs more space? If you're drafting a thesis, compiling a report, or craft
    9 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences