What is an entity relationship diagram (ERD)?

13 min

ERD example

ER diagrams are related to data structure diagrams (DSDs), which focus on the relationships of elements within entities instead of relationships between entities themselves. ER diagrams are also used in conjunction with data flow diagrams (DFDs), which map out the flow of information for processes or systems.

ERD for school example
entity
Weak Entity
Associative Entity
Relationship in an ERD
Weak Relationship in an ERD
Attribute
Key Attribute
Partial Key Attribute
Derived Attribute
Cardinality in ERD

ER diagram Templates

Get started creating ER diagrams with ready-to-use templates.

Data flow diagram: Level 1

Paid Account

Data flow diagram: Level 1

Data flow diagram: Level 2

Paid Account

Data flow diagram: Level 2

Frequently asked questions about ER Diagrams

An entity relationship diagram (ERD) is a flowchart that illustrates how entities, such as people, objects, or concepts, relate to each other within a system. ERDs are primarily used in designing relational databases.

The main components of an ERD include entities (represented as rectangles), relationships (depicted as diamonds), and attributes (shown as ovals), which together illustrate the structure of the database.

Cardinality defines the numerical relationships between entities, indicating whether they’re one-to-one, one-to-many, or many-to-many, and clarifying how many instances of one entity relate to another.

The primary purpose of an ERD is to model and design relational databases, allowing teams to visualize data requirements and relationships before implementing the actual database.

To create a basic ERD, define the purpose and scope, identify the entities, determine their relationships, add attributes, and indicate cardinality for each relationship.

Yes, ERDs can be used to analyze existing databases to identify and resolve logical or deployment issues by visually mapping out the relationships and entities involved.

ERDs are commonly used in database design, business information systems, business process re-engineering, education, and research to streamline processes and improve data management.

Specific symbols like rectangles, diamonds, and ovals are used in ERDs to create a visual language that represents entities, relationships, and attributes, making the diagrams intuitive and easy to understand.

Yes, ERDs can include entities that do not have relationships with others, as the goal is to accurately model the system, which may involve standalone entities.

Everything you need to make a diagram

In addition to our online diagram maker, Lucidchart offers support and training resources to help you branch out to any type of diagram.

View training labs