Skip to main content
Citation Guides

How to Cite Software and Code in Academic Papers

Cite research software, packages, and code repositories in APA, MLA, Chicago, Harvard, IEEE, and Vancouver, with version and DOI rules.

CiteTools12 min read

If your analysis depends on a specific Python package, a custom script you wrote, or a lab’s internal toolkit, that software is a source. Someone else needs to identify exactly what you ran to reproduce your results. The FORCE11 Software Citation Principles call software “a legitimate and citable product of research.” They ask for citations that identify the specific version used. The styles below turn that into a reference.

Why This Goes Beyond Formatting

A method section that says “we processed the data with a custom pipeline” tells a reader nothing they can act on. A citation that names the exact package, version, and archive location gives them something they could actually run themselves. The FORCE11 report calls citing the specific software used “necessary for reproducibility, although not sufficient.” For computational work, naming the software is part of describing the method.

Which Software Needs an Entry

Not every program you used gets a reference. APA says general mentions of common software and apps in the text need no citation or reference list entry. The MLA Style Center says a program used as a tool to make a drawing or model needs no works-cited entry. Name it in your text or a caption instead. The Chicago 18 guide of the Naval Postgraduate School says a citation is required only if the software is not well known. Cite the specific packages and scripts your results depend on, not the general-purpose language.

The Example Software

We’ll cite this package in every style:

  • Author: Claudio Satriano
  • Software name: SeisCat: Keep a local seismic catalog
  • Version: 0.9.4
  • Repository: Zenodo (archived from GitHub)
  • Released: 23 April 2026
  • DOI: 10.5281/zenodo.19707998

The repository’s CITATION.cff file and README spell the name SeisCat. Zenodo’s record spells it “Seiscat”, and CiteTools prints that spelling. The lines below use the repository’s spelling.

APA 7th Edition

Satriano, C. (2026). SeisCat: Keep a local seismic catalog (Version 0.9.4) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.19707998

Key rules:

  • Author formatted like any other reference: last name, initials.
  • Software name in italics, with the version number in parentheses after it. APA’s elements page shows Comprehensive meta-analysis (Version 3.3.070) [Computer software].
  • A bracketed description follows. APA lists software and mobile apps among the works that carry one, and says you may alter the wording of its examples.
  • The repository name stands in for the publisher.
  • APA’s sentence case capitalizes the first word of a subtitle, so “Keep” takes a capital K, as in the repository’s CITATION.cff. CiteTools keeps the record’s lower case and prints “Seiscat: keep a local seismic catalog”.

MLA 9th Edition

Satriano, Claudio. SeisCat: Keep a Local Seismic Catalog. Version 0.9.4, Zenodo, 23 Apr. 2026, https://doi.org/10.5281/zenodo.19707998.

Key rules:

  • Author inverted (Last, First), same as any other MLA entry.
  • The MLA Style Center says that in MLA style, titles of software programs, including apps, are italicized.
  • The Style Center has no post on citing a software package. Its source-code post, written for the eighth edition, builds an entry from the template: version, publisher, date, then location. It accepts a commit hash as the version.
  • No bracketed descriptor appears in the Style Center’s software examples.

Chicago 18th Edition (Notes and Bibliography)

Footnote:

  1. Claudio Satriano, SeisCat: Keep a Local Seismic Catalog, v. 0.9.4, Zenodo, released April 23, 2026, https://doi.org/10.5281/zenodo.19707998.

Bibliography entry:

Satriano, Claudio. SeisCat: Keep a Local Seismic Catalog. V. 0.9.4. Zenodo, released April 23, 2026. https://doi.org/10.5281/zenodo.19707998.

Key rules:

  • The free contents list of the Chicago Manual’s chapter 14 has no section on software. The nearest is 14.169, “Video games and other apps”, and its text sits behind a login. These lines follow the Naval Postgraduate School’s guide to Chicago 18.
  • That guide puts software in a note, with the title in italics, “v.” and the version, the publisher and “released” with the date. It gives software no bibliography entry. Its sample names no author, and the footnote above puts the author first and ends with the DOI link.
  • CiteTools prints a bibliography entry as well. Use it only if your instructor wants software in the bibliography.

Harvard

Satriano, C. (2026) SeisCat: keep a local seismic catalog (version 0.9.4) [Computer program]. Available at: https://doi.org/10.5281/zenodo.19707998 (Accessed: 20 October 2026).

Key rules:

  • Cite Them Right sits behind a login. Robert Gordon University’s Cite Them Right template for a desktop program reads: Author (Year of release) Title (version) [Computer program]. Available at: DOI or URL (Accessed: date).
  • That template italicizes the title and uses “[Computer program]”, not APA’s “[Computer software]”.
  • CiteTools prints the italic title, the version and the descriptor. A DOI gives it no access date, so add the day you read the page.
  • The access date is the day you read the page. This line uses the day of writing.

IEEE

[1] C. Satriano, SeisCat: Keep a local seismic catalog. (Apr. 23, 2026). Zenodo. (0.9.4). doi: 10.5281/zenodo.19707998.

Key rules (IEEE Reference Guide, section on software):

  • The Guide’s template reads: J. K. Author. Title of Software. (Date). Repository or Archive. (version or year). Publisher Name. Accessed: Date (when applicable). [Type of Medium]. Global Persistent Identifier. Available: site/path/file.
  • It puts a period after the author and the version in parentheses after the repository. Its two online examples put [Online] before “Available:”, and none uses a software descriptor.
  • The Guide’s software examples use title case, so “Keep” takes a capital K, as in the repository’s CITATION.cff. CiteTools prints “Seiscat: keep a local seismic catalog”.
  • CiteTools uses a comma after the author and ends with the DOI.

Vancouver

NLM’s simplified format for software puts the version after the title and the descriptor [software] after the version. The publisher comes next, then the dates:

  1. Satriano C. SeisCat: keep a local seismic catalog. Version 0.9.4 [software]. Zenodo. 2026 Apr 23 [cited 2026 Oct 20]. Available from: https://doi.org/10.5281/zenodo.19707998

Key rules:

  • No periods in the author initial (Satriano C).
  • NLM’s samples read “Version 2.3.2 [software].” and “Version 5.0.1 [software].” The descriptor is lower case.
  • NLM says the publisher is optional and the place of publication is not needed. It says to strive for an “Available from:” note with a URL or a DOI.

CiteTools prints [Internet] where NLM writes [software], and it leaves the version out. Rewrite the line in the form above.

Quick Comparison Table

ElementAPAMLAChicago 18th EditionHarvardIEEEVancouver
Descriptor[Computer software]NoneNone[Computer program][Online] before “Available:”[software]
Version(Version 0.9.4) after titleVersion 0.9.4, after titlev. 0.9.4 after title(version) after title(version) after repositoryVersion 0.9.4 before the descriptor
DateYearFull date“released” and full dateYearFull date in parenthesesFull date, then the date you read it

The APA, IEEE and Vancouver columns follow the manuals. The MLA, Chicago and Harvard columns follow the library guides and Style Center posts named above.

Special Cases

Software Without a DOI

Most code hosted only on GitHub, GitLab, or a personal site has no persistent identifier. Cite the repository address and add the date you read it where your style asks for one. IEEE’s software form carries “Accessed:” when applicable, NLM’s carries “[cited ...]”, and the Cite Them Right template ends with “(Accessed: date)”. Zenodo can archive a public GitHub repository and issue a DOI each time you create a release, as GitHub’s documentation describes. Software Heritage archives code too, and it identifies it with a SWHID, a content-based identifier rather than a DOI. Archive code that is central to your results before you submit.

Citing a Specific Version or Commit

If reproducibility matters – and for research code, it usually does – cite the exact version or commit hash you ran. The FORCE11 Software Citation Principles say a citation should identify “the specific version of software that was used,” using version numbers, revision numbers or platforms. The IEEE Reference Guide reproduces them. The MLA Style Center accepts a commit hash in the version slot.

A package can have two DOIs. The SeisCat repository’s CITATION.cff file gives 10.5281/zenodo.19596891, which stands for all versions of the package. Version 0.9.4 has its own DOI, 10.5281/zenodo.19707998. Cite the version DOI with a version number. The all-versions DOI opens the newest release, so it stops matching “0.9.4” once the authors publish another.

Software Maintained by a Group or Organization

When a package has too many contributors to list individually, cite the maintaining organization or the authors named in the repository’s citation file. A CITATION.cff file in the repository root tells others how the authors want to be cited. GitHub then shows a “Cite this repository” link on the repository page. Check the repository root before you guess at how the maintainers want to be credited.

Command-Line Tools and Notebooks Without a Formal Release

Not every piece of research code arrives as a versioned package with a changelog. A one-off analysis script or a Jupyter notebook still counts as software worth citing if someone else would need it to reproduce your work. Put it in a public GitHub repository, switch the repository on at Zenodo, and create a release. Zenodo then archives that release and gives the script a DOI, as GitHub’s documentation describes.

Citing Your Own Code

If you wrote the software yourself as part of the research, cite it like any other software you used, with yourself as the author. A tool you built can also appear in application materials like grad school personal statements. Citing your own prior work correctly matters there as much as citing anyone else’s.

Common Mistakes

  1. Citing “Python” or “R” as if the language itself needs a citation for ordinary use. APA lists common software among the mentions that need no reference. Cite the packages and scripts your results depend on, unless your field’s style guide says otherwise.
  2. Skipping the version number. Without it, no one can tell which release of the software actually produced your results.
  3. Using one descriptor in every style. APA uses [Computer software], the Cite Them Right template uses [Computer program], and NLM uses [software]. The MLA examples use none, and the IEEE examples use [Online], not a software descriptor.
  4. Citing only a GitHub address when the repository could have a DOI. A live-only address stops working once the repository is renamed, moved, or deleted.
  5. Listing every contributor by hand from the commit history. Check the repository’s own citation file first. Maintainers often state how they want to be credited.

Try It with CiteTools

Once you have a DOI for an archived package from Zenodo, CiteTools.io turns it into a software citation. APA prints the version and [Computer software]. Harvard prints the version and [Computer program]. IEEE prints the version after the repository. Vancouver prints no version, and Vancouver prints [Internet] in place of [software], so check against the forms above. Paste the version DOI, not the all-versions DOI.

A GitHub repository address does not work the same way. CiteTools reads it as a web page and prints “GitHub” as the author and “GitHub -” at the start of the title, with no version. Take the author, name and version from the repository’s CITATION.cff file or its release page instead.

The DOI to BibTeX converter turns a Zenodo DOI into an @misc entry that carries no version, so add the version yourself. If you’re assembling a BibTeX file for LaTeX alongside your citations, see our guide on exporting citations to BibTeX, Word, and LaTeX. For raw datasets that accompany the same project, see our guide on how to cite a dataset.

Sources

  • APA Style, Elements of Reference List Entries (bracketed descriptions), archived 13 October 2026: https://web.archive.org/web/20261013161836/https://apastyle.apa.org/style-grammar-guidelines/references/elements-list-entry
  • APA Style, Works Included in a Reference List, archived 30 September 2026: https://web.archive.org/web/20260930143659/https://apastyle.apa.org/style-grammar-guidelines/references/works-included
  • APA Style, Sentence Case Capitalization (Publication Manual section 6.17), archived 11 September 2026: https://web.archive.org/web/20260911033300/https://apastyle.apa.org/style-grammar-guidelines/capitalization/sentence-case
  • MLA Style Center, “Citing Source Code in MLA Style”: https://style.mla.org/citing-source-code/
  • MLA Style Center, “Do I need to cite computer-aided design (CAD) software that I used to create a drawing or model?”: https://style.mla.org/computer-aided-design-software/
  • Naval Postgraduate School, Dudley Knox Library, Chicago Notes & Bibliography (18th ed.), Computer Program / Software: https://libguides.nps.edu/citation/chicago-nb
  • The Chicago Manual of Style, 18th edition, chapter 14 contents (section 14.169, Video games and other apps): https://www.chicagomanualofstyle.org/book/ed18/part3/ch14/toc.html
  • Robert Gordon University Library, Cite Them Right Harvard Templates: Software: https://library.rgu.ac.uk/harvard-referencing-templates/software
  • IEEE Reference Guide, version 3.28.2025, section on software and the FORCE11 Software Citation Principles: https://ieeeauthorcenter.ieee.org/wp-content/uploads/IEEE-Reference-Guide.pdf
  • National Library of Medicine, Samples of Formatted References for Authors of Journal Articles, item 44 (Software on the Internet), reviewed 2 June 2026: https://www.nlm.nih.gov/bsd/uniform_requirements.html
  • FORCE11, Software Citation Principles (2016): https://force11.org/info/software-citation-principles-published-2016/
  • SeisCat repository, CITATION.cff and README (the package’s own spelling of its name): https://github.com/SeismicSource/seiscat
  • GitHub Docs, About CITATION files: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files
  • GitHub Docs, Referencing and citing content (Zenodo): https://docs.github.com/en/repositories/archiving-a-github-repository/referencing-and-citing-content
  • Software Heritage, FAQ on the SWHID: https://www.softwareheritage.org/faq/

Related reading