Citing software and code in your thesis — the practical guide

R, Python, SPSS, GitHub repos, Excel macros: when you need to cite software, how to do it in APA, MLA, and Chicago, and the mistakes that cost you marks.

7 min read

Short answer

Cite it when your result depends on the software version: R, Python packages, SPSS, MAXQDA, your own scripts. Word, Excel tables and Zotero are not cited.

APA 7Author or Company. (Year). Name (Version x.y) [Computer software]. Publisher. URL

Methodsanalysed with R 4.4.2 and the lme4 1.1⁠-⁠35 package

Contents (13)
  1. When software has to be cited
  2. What belongs in a software reference
  3. APA 7 — the standard in social sciences and psychology
  4. R and an R package
  5. Python package
  6. SPSS, Stata, MAXQDA
  7. GitHub repo without a formal publication
  8. MLA 9 — the core-elements logic
  9. Chicago 17 — the footnote variant
  10. How to find authors and versions
  11. The most common mistakes
  12. Reproducibility is the actual reason
  13. Acurio checks this too

Check your bibliography before you submit

The free check finds entries that are in no registry, wrong years, DOIs, titles or authors, and retracted papers. You see them before your supervisor does.

Looked up in Crossref, OpenAlex, DataCite and arXiv, books without a DOI in DNB and K10plus.

Free, no account. A few entries are enough; a full list takes about one to two minutes.

And does the source back what you cite?

Only the analysis can tell: you upload your thesis, Acurio finds open-access copies itself and you add the rest as PDFs. Each citation then reads supported, partly supported or not supported, with the passage from the source.

With an account, your thesis and its sources. Free: up to 15 citations checked, 3 findings shown in full, the rest with a pack. No credit card.

Related check:DOI checker

Frequently asked questions

Do I really need to cite Excel or Word?
No. Ubiquitous general-purpose software — Word, Excel, a browser — isn't cited, no more than the ballpoint pen you took notes with. What you must cite is software that shapes your results: statistical packages, specialised analysis tools, R or Python libraries, database software. Rule of thumb: would someone using different software get a different result? Then cite.
Isn't mentioning the software in the methods section enough?
Almost — but not quite. The in-text mention ('analysed with R 4.4.2 and the lme4 1.1-35 package') belongs in the methods section, no exception. On top of that you need a full entry in the bibliography, otherwise the formal record of what you used is missing. Without that entry, no one can replicate your analysis.
How do I cite a GitHub repo that isn't an official publication?
As software: author, title, version (commit hash or release tag), year, URL, and access date. If the repo has a Zenodo or Figshare DOI, use it — it's more stable than the GitHub link because it points to an immutable copy. Without a DOI, the commit hash is the only way to document unambiguously the state of the code you used.

Continue reading

The 12 most common citation mistakes

Get the free PDF guide: examples from real bachelor's and master's theses.