First normal form

Also known as: 1NF

On this page 7

First normal form (1NF) is the basic level of relational normalization in which every column of a table holds a single, atomic value of one domain, there are no repeating groups, and each row can be identified by a key. In data modeling, 1NF is the entry condition for a proper relational table and the starting point for second and third normal form.

Edgar F. Codd introduced the idea in 1970 as part of the relational model. A table that violates first normal form stores lists, arrays or numbered column sets inside one row, which makes querying, indexing and enforcing integrity far harder in relational databases.

The rules of first normal form

A table is in first normal form when it satisfies a small set of structural rules about values, columns and rows. Textbooks phrase them slightly differently, but the core requirements are consistent.

RuleMeaningTypical violation
Atomic valuesEach cell holds one value from its domainA phone column containing three numbers separated by commas
No repeating groupsNo numbered column sets for the same factColumns item1, item2 and item3 in an orders table
Single domain per columnEvery value in a column has the same type and meaningA column mixing dates and free-text notes
Identifiable rowsA primary key distinguishes every rowDuplicate rows with no key
Order independenceMeaning does not depend on row or column orderRelying on row position to link data
Core requirements of 1NF

The key requirement links 1NF to the relational concept of a relation as a set of tuples. Sets contain no duplicates and have no inherent order, so a table that depends on duplicate rows or physical position is not a true relation.

What atomic means in practice

Atomicity is relative to how the data is used, not an absolute property of the value. A full street address can be atomic for a mailing label system, but it is not atomic for an application that filters customers by postal code or city.

Codd and later C. J. Date discussed this point at length. Date argues that any value of a defined type can be atomic, including dates or geometric points, as long as the database treats it as one value and queries do not need to look inside it. The practical test is simple: if queries regularly split or search inside a column, that column is probably not atomic for this model.

Modern engines blur the line with arrays, JSON and composite types. PostgreSQL array columns or a JSON document can be acceptable when the content is read and written as a whole, but they become a 1NF problem when the application must join, filter or enforce constraints on individual elements.

Converting a table to first normal form

A table is brought into first normal form by moving multi-valued data into separate rows, usually in a new child table linked by a foreign key. This creates a one-to-many relationship in place of a list stored inside one row.

Consider a customer table that stores several phone numbers in one text column. The table below shows the transformation.

DesignStructureEffect
Unnormalizedcustomer(id, name, phones)Phones stored as a comma-separated string
Repeating columnscustomer(id, name, phone1, phone2, phone3)Fixed limit and many empty cells
First normal formcustomer(id, name) and customer_phone(customer_id, phone)One row per phone, unlimited count
Repairing a multi-valued column
  1. Identify columns that contain lists, delimited strings or numbered duplicates.
  2. Create a child table with a foreign key to the parent and one column per atomic attribute.
  3. Define a primary key for the child table, often the foreign key plus the value or a sequence number.
  4. Migrate the data by splitting existing values into rows and validating the counts.
  5. Add constraints such as uniqueness and check constraints that were impossible before.

First normal form among the normal forms

First normal form is the foundation for higher normal forms, which address redundancy caused by dependencies between columns rather than the shape of individual values. A table can be in 1NF and still repeat the same facts many times.

Normal formProblem addressedRequires
1NFMulti-valued cells and repeating groupsAtomic values and a key
2NFPartial dependency on part of a composite key1NF
3NFTransitive dependency on non-key columns2NF
BCNFAny determinant that is not a candidate key3NF
How 1NF relates to higher normal forms

Because each level builds on the previous one, design reviews usually check 1NF first. A violation at this level often hides update anomalies that would otherwise appear only in later normalization steps.

Fixing a 1NF violation can also expose hidden dependencies. Once a list of products moves into its own rows, designers often notice that product names and prices repeat across orders, which is exactly the partial or transitive dependency that second and third normal form then remove.

When teams deliberately break 1NF

Breaking first normal form is sometimes a conscious denormalization choice rather than an error. Analytical systems built on a star schema or columnar storage may store arrays of tags, and document databases routinely embed lists inside records to avoid joins.

The trade-off is faster reads against weaker integrity. Embedded lists cannot carry foreign keys, are harder to index for element-level searches and make partial updates more expensive. A sound rule is to keep transactional data in 1NF and accept non-atomic structures only where the access pattern is read-heavy, the list is small and the elements are never queried on their own.

In plain words

First normal form means one box holds one piece of information. A spreadsheet cell that says “red, blue, green” breaks the rule. A properly organized table gives each color its own row.

This makes the data easy to search, count and correct. If a customer has three phone numbers, the database stores three rows, not one cell with a list. Every fact gets its own clear place, and nothing has to be untangled later.

A real-world example

A small online bookstore started with an orders table in which a single text column listed every ISBN of the order, separated by semicolons. Reporting on best-selling titles required string parsing in every query, and a typo in one separator silently dropped books from sales totals.

During a redesign, the data team moved to first normal form. They created an order_line table with one row per book, holding the order number, the ISBN, the quantity and the unit price, with a foreign key to the books table. Roughly 120,000 legacy orders were split into about 310,000 order lines in a single migration script. Afterward, a simple GROUP BY query produced accurate sales by title, invalid ISBNs were rejected by the foreign key, and reporting errors disappeared.