Skip to main content

How to Write a Technical Book Engineers Will Read

Writing: How to Write a Technical Book Engineers Will Read

Google's free technical writing course puts the whole job into one subtraction. Good documentation equals the knowledge and skills your audience needs, minus the knowledge and skills they already have.

The same page names the trap that ruins most technical books. Experts suffer from "the curse of knowledge," where "their expert understanding of a topic ruins their explanations to newcomers."

Maybe you are an engineer, data scientist or security specialist. You want to write the book you wish you had when you started. This guide is for you.

It covers who the book is for, how to structure it, how to keep the code correct and who should review it. It ends with where to publish, using the real terms the main technical publishers show in public.

A diagram of the four layers of a technical book: Concept, Worked example, Code and diagrams, and Reference, with the note that every listing lives in a tested repository pinned to the versions named in the book
The four layers most technical chapters move through, from why a thing exists to a page the reader comes back to.

Skip to the publisher comparison

What is a technical book, and who is yours for?

A technical book teaches a reader to understand and use a technology, method or system, usually with examples they can run themselves. A programming guide, a cloud architecture handbook and a field guide to network security are all technical books.

The reader decides everything else. A book for a junior developer explains what a container is. A book for a platform engineer assumes it and spends those pages on failure modes.

Write one sentence before anything else, in this shape:

"This book is for [reader]. They already know [what they know]. They want to [do this task]." Google's formula tells you what goes in the book. It is the gap between what they know and the task.

Then list what you will not cover. Scope is where technical books die. Every topic you know feels essential, and a book that covers all of them never ships.

How should a technical book be structured?

Most good technical chapters move through four layers. You can see them in the figure above.

Concept. Why the thing exists and the mental model behind it. Define each term once, and keep using the same word for it.

Worked example. One realistic task, done step by step, with the output the reader should see. A worked example is a complete solution shown in order, so the reader can follow every step before trying it alone.

Code and diagrams. Short listings the reader can run, and one diagram per idea. Show the common error and what it looks like, because that is the moment your reader will open the book again.

Reference. Tables of options, a glossary, an index, and where to go next. This is the part readers keep the book for after the first read. Our guide on whether your book needs an index helps you decide how much reference to build.

At book level, order chapters by what the reader can do, not by how the technology is built. "Deploy your first service" comes before "How the scheduler works," even if the scheduler is the more elegant topic. Our book outline template gives you a page to plan the chapters on.

How do you keep code examples correct and versioned?

Wrong code is the fastest way to lose a technical reader. They type it, it fails, and they stop trusting every page after it.

1Keep every listing in a repository. The book shows code that lives in real files, not code typed into the manuscript.
2Test the examples. Run every listing automatically before each draft goes out, the same way you test production code.
3Pin the versions. Name the language, library and tool versions in the front of the book, and pin the same versions in the repository.
4Keep listings short. Show the lines that teach the idea. Put the full program in the repository and say where it is.
5Plan for updates. Decide now how you will handle a breaking release: an errata page, a new edition, or an updated ebook.

Versions matter more than most first-time authors expect. A book that says "works with version 3" without saying which minor release will get bug reports from version 3.9 readers about something that changed in 3.4.

Diagrams need the same care. Draw them from a source file you can edit, not as a screenshot you cannot change. If you plan to use AI to help with images, our guide to AI images inside a nonfiction book on KDP covers what Amazon allows.

Who should review a technical book before it ships?

A technical book needs two kinds of review, and they catch different problems.

Practitioners check the content. Find three to five people who do the job your reader wants to do. Ask them to run every example and mark anything wrong, outdated or unclear. Pay them, credit them, or both.

A reader from the target audience checks the teaching. This person should match your one-sentence reader. Watch where they get stuck. The curse of knowledge is invisible to you and obvious to them.

Traditional technical publishers build this into the process.

The Pragmatic Bookshelf's publish with us page promises a whole team. It lists "developmental editors, technical reviewers, copyeditors, proofreaders, production experts, and marketing support." If you self-publish, you hire or recruit each of those roles yourself. Our guide to book editing services by type explains what each kind of editor does and what they charge.

Where can you publish a technical book?

You have two main paths: a traditional technical publisher, or self-publishing. The terms below come from each publisher's own public page, checked November 24, 2026.

The Pragmatic Bookshelf Publish with Us page, describing developmental editors, technical reviewers and royalties starting at 42% for first-time authors
The Pragmatic Bookshelf's page for authors, captured November 24, 2026. It states its royalty for first-time authors and lists the editing team you get.

The Pragmatic Bookshelf. It says it pays royalties "starting at 42% for first-time authors and increasing on subsequent titles." You start by emailing proposals@pragprog.com, ideally with its proposal template. It also runs a distribution program for technical books you have already self-published.

No Starch Press. Its Write for Us page offers a choice: 15 percent royalty with no advance, 12 percent with a $5,000 advance, or 10 percent with an $8,000 advance. That choice applies as long as the work "won't require extensive rewriting" and is one color throughout. Ebook sales pay 25 percent. The page says its seven acquisitions editors handle about 50 books a year.

The Publishing With Us section of No Starch Press's Write for Us page, listing 15 percent royalty with no advance, 12 percent with a 5,000 dollar advance and 10 percent with an 8,000 dollar advance, and 25 percent on ebooks
No Starch Press publishes its royalty options in full, which is rare among technical publishers. Captured November 24, 2026.

Manning. Its write for us page asks for a proposal sent to proposals@manning.com. It says terms are discussed "once we have a solid plan." Manning also runs the Manning Early Access Program. Readers buy the book and read it chapter by chapter while it is being written.

O'Reilly. The O'Reilly work with us page asks authors to send an idea or proposal to workwithus@oreilly.com. It does not publish royalty terms.

Self-publishing on Leanpub. Leanpub's author page says it pays 80% royalties on purchases of $7.99 and up, and 80% minus 50 cents below that. Its motto is "Publish Early, Publish Often," and it is built for publishing a book before it is finished.

Self-publishing on Amazon KDP. You keep the most control and do the most work. You format the interior, make the cover and set the price. Our guide to KDP ebook royalties explains when you earn 70% and when you earn 35%.

Publishers at a glance, November 2026
Pragmatic BookshelfRoyalties from 42% for first-time authors; full editing and technical review team.
No Starch Press15%, 12% or 10% royalty with no, $5,000 or $8,000 advance; 25% on ebooks.
ManningTerms after a proposal; early access program sells chapters as they are written.
O'ReillyProposals by email; no public royalty terms.
Leanpub80% royalty from $7.99, 80% minus 50 cents below; motto is publish early, publish often.
Amazon KDPYou do the formatting and cover; you set the price and keep control.

Read each percentage carefully. The pages quoted here do not say what the royalty is a percentage of, so ask before you sign. A share of the list price and a share of the publisher's net receipts are very different numbers.

Should you pitch a publisher or self-publish?

Pitch a publisher if you want editors and technical reviewers provided, a known name on the spine, and help with distribution. Expect to write a proposal first. Our guide on how to write a book proposal covers what publishers expect to see.

Self-publish if your topic moves fast, your audience already follows you, or you want to keep control of updates and price. Our comparison of self-publishing platforms helps you pick where to start.

Some authors do both. The Pragmatic Bookshelf's distribution program exists for books that started self-published, which shows the paths are not one-way.

Before you sign anything

Read the full contract. Ask what the royalty is calculated on, who owns the code in the book, and what happens to the rights if the book goes out of print. No Starch links its publishing agreement from its Write for Us page, so you can read one before you pitch.

Where Built&Written fits, and where it does not

Built&Written is made for prose nonfiction, so be clear about the limits before you use it for a technical book.

It does not offer code syntax highlighting. Its print interiors are black and white, on white or cream paper, so color diagrams print in grey. If your book is mostly code listings or depends on color, a publisher's production team or a tool built for code will serve you better.

Where it helps is the prose around the code. If you have already written the manuscript, our book formatter takes a .docx, .md or .txt file and builds the print PDF and KDP files. Pictures can sit inside chapters and flow into the PDF, ePub and DOCX exports. That is $19/month for your own manuscript.

Maybe you have talks, posts and notes but no manuscript yet. Our AI nonfiction book writer drafts chapters in your voice, learned from a few pages of your writing (about 300 to 1,000 words).

That is $49/month for AI-written books ($19/month for your own manuscript). Every plan comes with monthly credits for the AI, and you see what a book will cost before Wren, our writing AI, writes it. You still check every technical claim, every command and every number yourself.

To see how long your manuscript will run in print, try our free word count to pages calculator.

Sources & References

  1. Google for Developers, Technical Writing One, Audience: https://developers.google.com/tech-writing/one/audience
  2. The Pragmatic Bookshelf, Publish with Us: https://pragprog.com/publish-with-us/
  3. No Starch Press, Write for Us: https://nostarch.com/writeforus
  4. Manning Publications, Write for us: https://www.manning.com/write-for-us
  5. Manning Publications, MEAP program: https://www.manning.com/meap-program
  6. O'Reilly Media, Work with us: https://www.oreilly.com/work-with-us.html
  7. Leanpub, Authors: https://leanpub.com/authors

Frequently asked questions

  • Send a proposal to a technical publisher. No Starch Press asks for a summary, an outline with chapter titles and first-level headings, the audience, competing titles, the market and who you are, plus writing samples. Manning and the Pragmatic Bookshelf take proposals by email at proposals@manning.com and proposals@pragprog.com, and O'Reilly at workwithus@oreilly.com.

  • It depends on the publisher and the path. No Starch Press lists 15 percent with no advance, 12 percent with a $5,000 advance or 10 percent with an $8,000 advance, and 25 percent on ebooks. The Pragmatic Bookshelf says royalties start at 42% for first-time authors. Leanpub pays self-publishers 80% on purchases of $7.99 and up.

  • Yes, on some platforms. Manning's Early Access Program lets readers buy a book chapter by chapter while it is being written and get the final ebook when it is done. Leanpub's motto is publish early, publish often, and it is built for releasing a book before it is complete.

  • The paths are not one-way. The Pragmatic Bookshelf runs a distribution program for technical books already self-published on Gumroad, Amazon or an author's own site, and asks authors to email proposals@pragprog.com with as much of the book as possible so it can review it.

Sources & References

  1. Google for Developers, Technical Writing One, Audience
  2. The Pragmatic Bookshelf, Publish with Us
  3. No Starch Press, Write for Us
  4. Manning Publications, Write for us
  5. Manning Publications, MEAP program
  6. O'Reilly Media, Work with us
  7. Leanpub, Authors
Start

Ready to write your own story?

Start building your book with Built&Written.