Development Basics

What Is a Design Document in Software Development?

What Is a Design Document in Software Development?

A design document gets written once the requirements are settled and before anyone starts coding. It lays out how a system or feature will be built, what decisions shaped it, and which trade-offs the team accepted along the way.

Reviewers get a chance to push back on the approach while changing it is still cheap. Rewriting a paragraph beats rewriting a module, and that is most of the argument for writing one.

People mean two different things by the term, and that causes some confusion. The older one is the formal software design description under IEEE 1016-2009, a standard the IEEE Standards Association lists as Inactive-Reserved since 5 March 2020. Google-style design docs follow no fixed template and center on trade-offs and rejected alternatives.

What Is a Design Document?

YouTube player

Requirements cover the “what”. The design document picks up the “how” and the “why”, and it does that before coding starts.

What goes in is the plan for building the software system or feature, plus the decisions that shaped it and the trade-offs the team accepted.

The requirements usually come first, either in a product document or in formal requirements specifications. The design document then bridges the gap between what the software should do and how it will be built.

Other Names for a Design Document

Teams use several labels for nearly the same artifact: software design document (SDD), software design description, software design specification, or just design doc.

All of them are listed as names for a representation of a software design used to record design information. Engineers say “design doc” in conversation. The IEEE 1016 standard says “software design description”.

Whatever the label, it is one piece of the documentation a software project accumulates. API references and runbooks are others, and so are user guides.

What a Design Document Is For

YouTube player

Most of the benefits come down to timing. Design issues surface while changes are still cheap, and reviewers settle on one design before the work spreads across several people.

The review also makes sure cross-cutting concerns get a look. Privacy and security come up, and so does logging, because somebody has to ask about them.

Then there is knowledge transfer. What senior engineers know reaches people outside their own team. The trade-offs written down become an organizational memory of why things were decided, and the document doubles as a summary artifact of the designer’s technical work.

These points come from Malte Ubl’s “Design Docs at Google” on Industrial Empathy. None of it needs a heavy template, only the trade-offs written down.

Formal SDD or Informal Design Doc: Which Tradition Fits?

Both traditions go by the same name, which is where the confusion starts. The formal one follows IEEE 1016 and describes a finished design. Google popularized the informal kind, which proposes a design and invites review.

The Formal Tradition: IEEE 1016

IEEE 1016-2009 sets the required information content and organization for software design descriptions. Both high-level and detailed designs fall under it, whatever the size of the software and however complex or critical it is.

The standard defines 12 design viewpoints, among them context, composition, interface, interaction and state dynamics, and authors can define their own.

As for its status, IEEE moved the standard to Inactive-Reserved on 5 March 2020. TechTarget’s guide still names IEEE 1016-2009 as a standard governing the information content of SDDs, so it keeps getting cited.

The Informal Tradition: Google-Style Design Docs

Ubl describes design docs as relatively informal documents that the primary authors write before coding starts, in whatever form suits the project.

Length scales with the work. Larger projects land at about 10 to 20 pages, and past that you should consider splitting the problem into sub-problems. Small or incremental work gets a mini design doc of 1 to 3 pages. Most of these live in Google Docs, mainly for its collaboration features.

Pros and Cons of Each Tradition

The formal software design description has a clear upside. A fixed content list leaves fewer gaps, it works as a stable reference for maintainers, and it fits contracts and audits that demand a complete description. The price is speed. It’s slow to write and slower to keep current, and the governing standard has been inactive since 2020.

Informal design docs are short enough that busy people actually read them. They center on trade-offs and rejected options, and inline comments make review fast. Where they fall down is coverage, which varies with the author because no template is enforced. They also tend to age after the build, since they record intent and not the running system.

A contract, regulator or handover that asks for a complete description is the case for the formal form. When the readers are your own team and its reviewers, the informal form fits better, and it’s the one I’d reach for by default.

What a Design Document Contains

Ubl recommends a core of context and scope, goals and non-goals, the design itself, alternatives considered, and cross-cutting concerns. Everything past those depends on the project.

Ranking guides disagree on the list. Atlassian’s template runs through system architecture, data design, interface design, component design and user interface design. That reads as a breakdown of the system’s parts, while Ubl’s list covers the decisions behind them.

Core Sections

Start with context and scope, a brief and objective background on what is being built. It is not a requirements doc, so keep it short and link out for the rest.

Goals and non-goals come next. Non-goals are things that could reasonably be goals but are deliberately excluded, which is exactly why they deserve a line.

The design itself gets an overview first and detail after. Expect a system-context diagram, and the APIs and data storage get covered here too.

Alternatives considered lists the rejected options and explains why the chosen design wins. Ubl calls it one of the most important sections. It is where a reviewer sees whether the author weighed anything at all.

Cross-cutting concerns close things out. These are the topics that touch everything, such as security and privacy, with observability close behind.

Sections That Depend on the Project

A design for a new service needs a data model, an API definition and a rollout plan. A small library can skip all of that.

Open questions belong in any draft, since they tell reviewers where to push. At Google, projects must also carry a dedicated privacy design doc.

When the document is mostly about structure, arc42 offers a free template for architecture documentation. Peter Hruschka and Gernot Starke created it, and teams have used it since 2005. Its 12 sections include architectural decisions and risks and technical debt.

Diagrams That Belong in the Document

Start with a system context diagram. Add others only when a reviewer needs them to judge the design.

ToolRole in the documentNote
UMLClass, sequence and state diagramsStandard notation
C4 modelFour levels: system context, container, component, codeCreated by Simon Brown, notation independent
MermaidDiagrams written as text inside MarkdownRendered natively by GitHub
PlantUMLUML diagrams drawn from plain textNot on GitHub’s native list

Diagrams written as text sit next to the Markdown and version with it. Drawn diagrams are easier to polish, though they’re harder to review in a diff.

Treat diagrams as a light version of software modeling. Draw what the design needs and stop.

Who Writes a Design Document, and Who Reads It?

The engineers who will build the system write it. Reviewers and implementers read it, and so does whoever maintains the system later. Ubl names the primary author or authors, sometimes with co-authors.

Authors

Ownership sits with engineering, even when product managers run a parallel document. According to The Pragmatic Engineer (originally published 2022, updated 2024), product requirement documents usually run alongside engineering design docs.

The header names the authors as primary contacts, so reviewers know whom to ask.

Readers

Anyone with a stake in the software reads it, from the people who implement and maintain it to stakeholders further from the code. It assumes some background and is not user documentation.

A small group of peers goes first, often people from the early whiteboard sessions. These are the canary readers. The wider team follows, and its questions and suggestions arrive as inline comments. Security and privacy reviewers join in as well, since Google requires their reviews by launch and recommends engaging them early. Last in line are future maintainers, who open it a year later to learn why the code looks the way it does.

Header Metadata

The header tells readers how complete and settled the document is. Title, authors, a last-updated date and a status do most of the work. Ubl’s illustrative status values run from draft through final and implemented to obsolete.

Where a Design Document Fits in the Development Process

The slot is after requirements are settled and before implementation begins. Atlassian places it early in the process, where it helps surface technical problems and reduces costly rework.

Where exactly it lands depends on how lifecycle models schedule the design step.

AspectWaterfall-styleAgile-style
TimingOne design phase before the buildPer feature or risky change
SizeFull specificationShort doc, mini doc for small work
Main readersThe whole delivery chainThe team and its reviewers

Teams practicing agile development write the lighter column. The 2001 Agile Manifesto prefers “Working software over comprehensive documentation”. Ubl adds that agile is no excuse for skipping design on known problems.

Triggers for Writing One

A document earns its place when the right answer is unclear because the problem, the solution or both are complex. It also helps when the design has to win agreement beyond one team.

Security or privacy exposure is another trigger. Reviews are required before launch, so the design goes first. Scope matters too, and Stedi, via The Pragmatic Engineer, reserves RFCs for broad projects, company-wide technical mandates and API changes.

A change that triggers none of these usually does not need a document.

How Does a Design Document Differ From a PRD, RFC and ADR?

A PRD says what to build and a design document says how and why. The RFC is the review a proposal goes through, and an ADR records a single decision once it has been made.

DocumentQuestion it answersWhen it appears
PRDWhat should we build, and for whom?Before design
Design documentHow will we build it, and why this way?Before implementation
RFCShould we adopt this proposal?While the proposal is open for comment
ADRWhich decision did we make, and why?After the decision

Together with API references and runbooks, these make up the documentation a software team keeps.

“Technical specification” is the loosest label in the set. Teams use it for requirements pages and design pages alike, so ask which question the page answers.

Design Document vs PRD

The PRD covers the problem and the audience, and the solution is left to the design document. Product managers usually write the first and engineers the second. The design cites the PRD instead of repeating it.

Design Document vs RFC

A Request for Comments (RFC) and a design document overlap more than any other pair, and The Pragmatic Engineer uses the term RFC for any type of engineering design document. The difference is function. The design document describes a solution, while the RFC process decides whether to adopt it.

Open source projects show the split well. Rust needs an RFC for a substantial change, such as a language change that is not a bug fix, while internal refactors generally do not. Python’s PEP is described as a design document and is the main way to propose major features and gather input, with design decisions recorded along the way. Kubernetes goes further and requires a KEP for all features and significant changes.

Inside a company the same split applies. The design document is the artifact, and the RFC process is the gate.

Design Document vs ADR

Scope separates them.

An architecture decision record (ADR) captures a single architectural decision with its context and significant consequences. It stays brief, one or two pages. Once accepted it is never reopened, and if the decision changes, a new ADR supersedes it.

A design document covers the whole design and the trade-offs of many decisions at once, and it keeps getting updated while the system is still unshipped.

Michael Nygard coined the term ADR in a 2011 article. I’d use both. The design document carries the argument while it is live, and the ADRs freeze the decisions that outlast it.

How to Write a Design Document

YouTube player

Most of the effort goes in before the design section gets written, and the draft should be shared before it feels finished.

  1. State the problem and scope. Keep the context objective and brief, and link to details instead of repeating them.
  2. List the goals, then the non-goals. Non-goals are reasonable goals you chose to drop.
  3. Sketch the approach with a small group. Colleagues who know the problem space can turn a rough draft into a stable first version quickly.
  4. Write the design itself. Link to API and schema definitions instead of pasting them, since pasted copies go stale.
  5. Record the alternatives while the rejected options are fresh, with the reason each one lost.
  6. Raise cross-cutting concerns early. Security, privacy and observability belong in the design from the start.
  7. Circulate it and revise. Share the document before it is fully polished.

When an idea is hard to judge on paper, build a quick prototype and link it. Ubl treats a successful prototype as support for a design choice.

Format and Tools

Teams mostly write these in Google Docs, on a wiki page, or as Markdown in a repository, and each one breaks down in its own way.

MediumStrengthWeak spot
Google DocsInline comments, easy sharingDocuments scatter across Drive folders and wiki links, so they are hard to find
Wiki pageOne searchable home per teamPages detach from the code’s review history
Markdown in a repositoryCan be read and diffed like codeGit is a barrier for non-developers

A document kept in the repository gets the version control the repository already provides. Every change to the design becomes a commit.

For a team that already lives in pull requests, that is the default worth trying first.

How a Design Document Is Reviewed and Approved

Review moves a draft from the author to peers, then to a wider audience, and ends with sign-off by whoever owns the decision. The format ranges from a team mailing list with comment threads to formal meetings with senior engineers.

From Draft to Maintenance

It starts with creation and rapid iteration. The author drafts and shares with colleagues who know the problem. Review follows, with the document going to a wider audience, in rounds if needed.

Once implementation begins, the document gets updated whenever reality exposes flaws, and changes often land in linked addenda. After that comes maintenance and learning. The document drifts out of date but stays the best starting point for understanding the system.

Design review follows the logic of code review, one step earlier. Reviews can slow work, so authors can seek key feedback directly and avoid blocking on the wider audience.

Who Signs Off

ProcessWho decidesClosing step
Informal design docAuthor and reviewersDeclared final informally, often when implementation starts
Rust RFCThe relevant sub-teamFinal comment period of 10 calendar days, then merge, close or postpone
Python PEPSteering Council or its delegateStatus moves from Draft toward Final
Uber RFCNamed approversApprovers read the document and either sign off or object

Python’s PEP process defines nine status values, from Draft and Accepted to Rejected and Superseded. That is far finer-grained than the draft-to-obsolete scale of an informal doc.

Uber later added weekly formal reviews by experienced engineers for critical changes, next to asynchronous review. Review depth follows the risk of the change.

When a Design Document Is Not Worth Writing

Skip it when the solution is obvious, or when the document would only describe how to implement something with no trade-offs to weigh. A document that only says how something will be built should probably be code instead.

Cases Where It Is Overhead

Writing a design document costs time, and the cost has to pay for itself. It usually doesn’t when the problem and the solution are both unambiguous and no real alternatives exist to compare. Text that would read as an implementation manual is the same story.

For the borderline cases, Ubl offers a quick test. A document is likely worthwhile when you answer yes to three or more of five questions.

  • Are you unsure of the right design and willing to spend time on certainty?
  • Would senior engineers who cannot review every change help shape it?
  • Is the design ambiguous or contested enough that consensus matters?
  • Does the team tend to overlook privacy, security or logging?
  • Does a legacy system need high-level documentation?

How Design Documents Fail

Uber’s RFC process ran into trouble once the company passed 2,000 engineers. Finding an RFC got hard, because they lived in Google Docs, Drive folders and wiki links. Hundreds of RFCs went out weekly and overwhelmed the experienced engineers asked to review them. And each team decided for itself when to write one, which left the rule ambiguous.

Staleness is where sources split. Ubl says to update the document at least until the system ships. One engineer’s write-up argues that letting a design doc grow old can be reasonable, because it is a historical record of intent and not the system itself.

Both positions hold once the document’s job is stated. A decision record can age, but a living reference that nobody updates misleads the people responsible for long-term maintainability.

Keeping the Overhead Low

Adoption works when the rules stay small.

Uber moved to lightweight templates for team-scoped changes and heavyweight ones for company-wide changes, and it built a searchable tool for all planning documents. Rereading your old documents later is worth the time too, since revisiting your own work sharpens design judgment.

Design Document FAQ

What separates high-level design from low-level design?

High-level design maps the architecture, meaning the major components and how they interact. Detailed design, also called low-level design, goes inside each component and specifies its internals.

IEEE 1016 covers the description of both high-level and detailed designs.

Is a design document the same as a software architecture document?

No. Architecture is the part of design that concerns a system’s fundamental structure, so a software architecture description covers the structure of a whole system, while a design document can also scope a single feature or change.

Where can I find a design document template or example?

Malte Ubl’s “Design docs – A design doc” is a design doc written about design docs, so it works as a worked example.

Sourcegraph and HashiCorp each publish an RFC process overview, and The Pragmatic Engineer lists more public templates.

What does a database design document cover?

It is the storage-focused part of a design document. Conceptual and logical elements sit in it alongside the physical ones, and it carries real weight in enterprise software.

How much code belongs in a design document?

Rarely any. Code or pseudo-code earns a place only where a novel algorithm needs explaining.

Otherwise, link to a prototype that shows the design can be built.

Introducing Design Documents Without Slowing the Team

The way to add design documents without slowing delivery is to keep the rules few. Pick one trigger rule and one template, give each document one reviewer, and widen the practice only while reviews stay fast.

The order matters, because each step shows whether the next one is needed.

  • Start with the trigger rule.
  • Run one pilot document on the next ambiguous change.
  • Settle the template and where documents are stored after the pilot review.

Uber’s engineers started writing documents for new services on their own, when the company had fewer than 50 engineers and no mandate existed. Approver fields reached only the complex proposals, after other teams adopted the format.

Formal gates followed adoption, not the reverse.

Every pilot costs a review round before coding starts. In return, design disagreements get settled on paper and don’t turn up later in the implementation.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.