Assignment Type

How to Write a STEM Thesis: Structure, Methods, Results and Code

How to plan the research and the writing together, structure the chapters, write reproducible methods, present results and handle data and code.

Updated October 2026 · 5 min read

To write a STEM thesis, plan the writing alongside the research, describe methods precisely enough for someone to reproduce them, and present results that answer your research questions. A thesis is a long argument, not a lab notebook.

This page covers the typical structure, reproducible methods, results and figures, discussion, data and code, and a realistic timeline. It ends with a checklist and how STEM Donkey can help.

What Examiners Look for in a STEM Thesis

Examiners look for clear research questions, a method that can answer them, results reported accurately with uncertainty, a discussion that relates findings to the literature and states limitations, and evidence of an original contribution.

They also check reproducibility: could another researcher repeat your work from the thesis, its appendices and any linked data or code?

Plan the Research and the Writing Together

Many students treat writing as the last stage. It works better as a parallel track that starts in the first months.

  • Draft your research questions early and revisit them as results arrive.
  • Write methods while you do the work, when details are fresh.
  • Keep a figure folder with the script that produced each figure.
  • Maintain a reference library in a manager such as Zotero from day one.
  • Agree a chapter plan with your supervisor before writing at length.

A Typical STEM Thesis Structure

ChapterPurposeKey contents
AbstractSummarize the thesisQuestions, methods, main findings, contribution
IntroductionSet the sceneContext, problem, research questions, thesis outline
Literature reviewEstablish the gapCritical synthesis of prior work, theory
MethodsExplain howDesign, materials, instruments, software, analysis
ResultsReport what you foundFigures, tables, statistics with uncertainty
DiscussionInterpretMeaning, comparison with literature, limitations
ConclusionCloseAnswers to research questions, contribution, future work
AppendicesSupportExtra data, derivations, code listings, protocols

Some programs accept a thesis by publication, where core chapters are papers with linking chapters. Check your regulations before choosing this format.

Writing Methods Others Can Reproduce

The methods chapter should let a competent researcher repeat your work. Precision beats elegance here.

  • Give equipment models, software names and versions, and settings.
  • Give quantities with units and tolerances, for example "incubated at 37.0 ± 0.5 °C for 48 h".
  • Describe sample sizes and how they were chosen.
  • State the statistical tests, significance level and software used.
  • Explain deviations from standard protocols and why you made them.

Example methods excerpt. Tensile specimens (n = 12 per condition) were machined to ASTM E8 subsize dimensions and tested on a universal testing machine at a crosshead speed of 1.0 mm/min at 22 ± 1 °C. Strain was measured with a 25 mm clip-on extensometer. Yield strength was taken at 0.2 percent offset. Group means were compared with a one-way ANOVA (α = 0.05) in R version 4.3, followed by Tukey's HSD test.

Presenting Results

Results chapters report findings without lengthy interpretation. Let the figures carry the data and the text guide the reader through them.

  • Order results by research question, not by the order you did the experiments.
  • Give every figure a descriptive caption, labeled axes and units.
  • Show uncertainty: error bars, confidence intervals or standard deviations, and say which.
  • Report statistics fully, for example "t(22) = 2.81, p = 0.010".
  • Match significant figures to measurement precision.

Discussion and Limitations

The discussion explains what the results mean. Work through each research question in turn.

  1. Restate the key finding in one sentence.
  2. Compare it with previous studies: does it agree, extend or contradict them?
  3. Explain possible mechanisms or reasons.
  4. State the limitations honestly, such as sample size, measurement error or model assumptions.
  5. Say what the finding means for the field and what should be done next.

Data, Code and Reproducibility

Modern STEM theses increasingly include data and code. Treat them as part of the thesis, not an afterthought.

ItemGood practice
Raw dataKeep unaltered copies; deposit in a repository if allowed
Analysis codeUse version control, comment it and record package versions
FiguresGenerate from scripts, not by hand, so they can be rebuilt
Code in the thesisShort key excerpts in the text, full listings in an appendix or repository
Data availabilityA statement saying where data and code can be accessed

A Realistic Writing Timeline

Writing always takes longer than planned. A thesis is carried like a heavy pack: steadily, a chapter at a time, rather than all in the last month.

  • Literature review: draft early, update before submission.
  • Methods: write alongside the work.
  • Results: draft as each study finishes.
  • Discussion and conclusion: write once results are stable.
  • Introduction and abstract: write last, so they match the thesis you actually wrote.
  • Final edit: allow several weeks for supervisor feedback, figures, formatting and proofreading.

Thesis Submission Checklist

  1. Research questions are stated clearly and answered in the conclusion.
  2. The methods could be repeated from the thesis and appendices.
  3. Every figure has a caption, labeled axes, units and uncertainty.
  4. Statistics are reported in full.
  5. Limitations are stated honestly.
  6. Your original contribution is explicit.
  7. References are complete and consistent.
  8. Formatting follows your university's regulations.

How STEM Donkey Helps with STEM Theses

Send your outline, chapter drafts, data, figures, code and supervisor comments. A writer matched to your field prepares a custom chapter draft, restructures existing chapters or edits for clarity, accuracy and consistency, working from your own research.

Use the work as a reference while you write your final thesis. Data and results are never invented or altered. Free revisions within the scope of your original request are included.

Want Help Shaping Your Thesis?

Send your outline, data, figures and supervisor comments. You get a custom chapter draft or edit with clear methods, well-presented results and a focused discussion.

Order Your Thesis Support

Free revisions · Full refund if late · Written from scratch for your order

Frequently Asked Questions

How long is a STEM master's thesis?

It varies by university and program. Check your regulations for word or page limits, and whether appendices count.

Which citation style should a STEM thesis use?

Use your department's required style. IEEE is common in engineering and computing, Vancouver or Harvard in life sciences, and author-date styles in many other fields.

Should I include code in my thesis?

Include short excerpts where they explain a method. Put full code in an appendix or a repository and include a data and code availability statement.

How do I write a thesis when an experiment failed?

Report what you did, why it failed and what you learned. Negative results, properly analyzed, still contribute and can be discussed as limitations or future work.

Should I write the introduction first?

Draft a rough version early to guide your work, but rewrite it last so it matches your final results and argument.

How many figures should a thesis have?

As many as the results need and no more. Each figure should support a specific point made in the text.