AI ToolsOctober 21, 2026

If you want to know how to make an ER diagram, list the entities your system stores data about, write down each entity’s attributes and primary key, state how the entities relate, set the cardinality of each relationship, then draw it in a tool and review it against real examples.

That sequence is the whole method. An ER diagram, short for entity-relationship diagram, maps the data a system stores: entities such as customers and orders, their attributes, and the relationships between them. It is the blueprint you draw before building a database, so design mistakes are caught on paper instead of in production.

This guide explains the background in plain language, then walks through six steps in order. You will also see the mistakes that catch most beginners, and how to check a finished diagram the way a reviewer would.

What an ER Diagram Is and Why It Comes First

An entity is a thing your system needs records about: a student, a course, an order, a product. Attributes are the facts you store about that entity, such as a name, an email address, or a date. Relationships describe how entities connect, for example that a customer places orders.

Drawing those three elements before you write any code gives developers, students, and stakeholders one shared picture of the data. Everyone can point at the same box and argue about the same field, which is far cheaper than arguing after tables exist.

A clear diagram reveals missing fields, unclear relationships, and naming problems at the cheapest possible moment, long before migrations and rewrites. Most people get a good result on their first attempt by working slowly and checking each stage as they go.

ER Diagram, Schema, and Physical Design

Beginners often use ER diagram and schema as if they meant the same thing. They are related, but they sit at different stages of the design.

The ER diagram is the conceptual design: entities, attributes, and relationships, drawn in a way a non-technical reader can follow. The schema is the implemented database structure of tables and columns derived from that diagram. Physical design goes one step further and deals with the actual database system, data types, and storage details.

Keeping those stages separate helps you think clearly. At the ER stage, you ask what data exists and how it connects. Questions about exact column types and indexes belong later, when the conceptual picture is settled.

What You Need Before You Start

Preparation is the difference between a smooth job and a frustrating afternoon. Gather the requirements or assignment brief, any sample data you have, and a diagram tool you are comfortable opening. Keep your original notes and sample files safe until the diagram is confirmed, and treat your first run as a learning pass.

  • The system description, brief, or requirements you are modelling
  • Sample records or example data, if any exist
  • A diagram tool, ready and signed in where needed
  • A copy of anything important, so a mistake never becomes a loss
  • Enough uninterrupted time to finish the review step, not just the drawing

Choosing a Diagram Tool and Notation

diagrams.net, Lucidchart, and dbdiagram.io are popular choices. dbdiagram.io lets you type a text schema and generate the diagram from it, which suits people who think faster in text than in dragging boxes around a canvas.

Most database courses accept standard notations such as crow’s foot, which most modern tools support. Use whichever notation your course or team expects, and then use it consistently from the first box to the last line.

Crow’s foot notation is the most widely used in modern tools and workplaces. Students should also recognise Chen notation, which many courses still teach, even if they draw their own work in crow’s foot.

If your diagram feeds into a wider system design, it helps to think about data ownership early. Our guide on how to build a data governance framework covers the policies and responsibilities that sit around a database once the diagram becomes a real system.

Database tables and relationships sketched for an ER diagram on a whiteboard

How to Make an ER Diagram Step by Step

Follow these six steps in order the first time you try this. Each one builds on the last, and skipping ahead is the most common reason people have to start over. Once the process feels familiar, you can combine or reorder small parts to suit your own workflow.

Step 1: Identify the Entities

List the main things the system stores data about, such as Student, Course, and Enrolment. Entities are nouns that need their own records, so scan your requirements for nouns that appear again and again.

A useful test is to ask whether the thing can exist as a row in a table with its own identity. A student can; a student’s email address cannot, which tells you it is probably an attribute. Write the list down before you draw anything.

Step 2: List Each Entity’s Attributes and Primary Key

For every entity, write its fields, such as name, email, and date of birth for a Student. Keep each attribute to one fact. If a field seems to hold several values at once, note that down, because it usually signals a missing entity or relationship.

Mark the attribute that uniquely identifies each record as the primary key. Every entity needs one, because without a unique identifier, records cannot be reliably linked or updated later.

Name attributes in simple, consistent words. A reader should be able to guess what a field holds from its name alone, without opening a separate document.

Step 3: Define the Relationships in Words

State how entities connect in plain sentences: a customer places many orders, a course has many students, an order contains products. These sentences become the lines on the diagram, so write them before you draw the lines.

Plain sentences expose fuzzy thinking fast. If you cannot finish the sentence “one order belongs to…” with confidence, the design has a gap that drawing will only hide.

Give each relationship a verb that reads naturally in both directions where you can. “Customer places Order” and “Order is placed by Customer” describe the same line from two sides, and both should make sense.

Step 4: Set the Cardinality of Each Relationship

For each relationship, decide whether it is one-to-one, one-to-many, or many-to-many. Cardinality describes how many records on one side can link to records on the other side.

Derive it from real examples rather than guessing. Ask concrete questions: can one order belong to two customers? Can a student enrol in five courses? Can a course have fifty students? The answers set the cardinality for you.

Many-to-many relationships usually need a junction entity of their own. A student enrols in many courses and a course has many students, so Enrolment becomes an entity between them, holding both primary keys and any data about the relationship itself, such as an enrolment date.

Step 5: Draw the Diagram in Your Tool

Place entities as boxes, list attributes in your chosen notation, and draw relationships as labelled lines. Mark primary keys clearly, and show cardinality with the notation you picked at the start.

Keep the layout uncluttered and consistent. Put closely related entities near each other, avoid lines crossing where you can, and give the diagram room to breathe. A crowded diagram hides errors instead of revealing them.

Keep a first draft messy and private, then redraw it cleanly once the ideas settle. The messy draft is where you think; the clean redraw is what you share.

Step 6: Normalise and Review Against Real Examples

Check that no data is stored twice unnecessarily and that every attribute belongs to the right entity. That checking process is the practical heart of normalisation at this stage: each fact lives in one place, attached to the entity it describes.

Walk through real examples to test the design. Take five sample records per entity and try to store them in your diagram without forcing anything. Sample data exposes most modelling errors, because real records refuse to fit a design that only works in theory.

Then step away for a few minutes and look at the diagram with fresh eyes. Small problems that were invisible while you were deep in the process become obvious, and that final review protects your credibility when the diagram is shared or relied on.

Developer drawing an entity relationship diagram for a database schema

Tips That Make ER Diagrams Easier to Get Right

Design from real sample data wherever you can. Five example records per entity will challenge your assumptions about names, duplicates, and relationships far better than abstract reasoning will.

Name entities in the singular and attributes in simple lowercase words. Student reads better than Students as an entity name, because each record is one student, and consistent naming makes the later schema easier to build.

Take notes as you go: the notation you chose, the cardinality decisions you made, and anything that surprised you. Those lines become your shortcut next time and make it far easier to get help.

If the diagram is part of a study project, a visual planning habit helps too. Our guide on how to make a mind map shows a quick way to brainstorm candidate entities before you commit to boxes and lines.

Students reviewing entities and relationships while designing a system together

Common ER Diagram Mistakes to Avoid

Almost every weak diagram traces back to a handful of predictable errors. Read this list before your first attempt, and again if something goes wrong, because the fix is usually here.

Storing Lists Inside One Field

A field like Courses taken containing five values breaks database rules. That is a relationship waiting to be modelled properly, with its own entity or link, not a text field holding a list.

When you spot a list hiding in a field, ask what each item in the list really is. The answer is usually an entity you have not drawn yet.

Forgetting Primary Keys

Every entity needs a unique identifier. Without one, records cannot be reliably linked or updated, and relationships drawn to that entity have nothing solid to attach to.

If no natural attribute is unique for every record, say so in your notes and plan a dedicated identifier attribute. Deciding this on the diagram is far easier than fixing duplicate records later.

Guessing Cardinality

One-to-many versus many-to-many changes the whole design. Guessing produces diagrams that look tidy and fail on the first real record.

Derive cardinality from examples every time. Can one order belong to two customers? Can one customer place ten orders? Two honest answers settle most relationship lines.

Mixing Notations in One Diagram

Switching between crow’s foot and Chen notation in one diagram confuses every reader. Pick one notation and use it throughout, even if you personally recognise both.

If you have already made one of these mistakes, do not panic. In most cases you can return to the last good step, correct the problem, and continue without starting from zero. Protect your originals and backups while you revise, so a correction never becomes a loss.

Frequently Asked Questions

What is the difference between an ER diagram and a schema?

The ER diagram is the conceptual design of entities and relationships. The schema is the implemented database structure of tables and columns derived from it. You draw the diagram first, then build the schema from it.

Which notation should a beginner learn?

Crow’s foot notation is the most widely used in modern tools and workplaces, so it is the practical first choice. Students should also recognise Chen notation, which many courses still teach and examine.

How do I handle a many-to-many relationship?

Create a junction entity between the two entities, holding both primary keys and any data about the relationship itself, such as an enrolment date. The junction turns one many-to-many link into two one-to-many links.

Can I auto-generate an ER diagram from an existing database?

Yes. Many database tools can reverse-engineer a diagram from a live database, which is a great starting point for documentation. Review the generated result by hand, because the tool can only show the structure that exists, not the design you intended.

How many entities should a first ER diagram have?

There is no fixed number. A small system may need four or five entities, while a larger one may need a dozen. Let the requirements decide, and merge entities that turn out to describe the same thing.

You now have the full method: identify entities, list attributes and primary keys, state relationships in words, set cardinality from real examples, draw in one consistent notation, then normalise and review. Work through the steps once, slowly, and keep this guide open beside you.

Verify the outcome before you rely on it or share it, keep your originals safe, and improve your approach a little each time you repeat the task. By the second or third diagram, the process will feel routine.

Daniel Carter
Written by Daniel Carter

Daniel tests AI tools for a living. He has reviewed 200+ AI apps and helps readers pick the right tool for their work.

Similar Posts