← All posts

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 readCitationSoftwareRPythonReproducibilityThesis

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.