Suppose I'm doing an academic paper, journal article, or other professional presentation. Would you say that it would be possible to use Stack Overflow as a reference?

Of course I'm pretty sure that the answer here would be "yes."

So here's the follow up: When, if ever, would it be a good idea to cite a Stack Overflow question as a reference in an professional paper/presentation of some kind?

  • 4
    in any case your abstract should start with the words "like, suppose..." :)
    – Epaga
    Nov 11 '08 at 15:41

12 Answers 12


In an academic paper, you should be careful with using unofficial references. Stack Overflow is an example of this. Anyone can write anything, and the only guarantee you have as to the quality of the writing is the reputation of the author and the number of up-votes the answer received. Publications such as professional magazines and articles are subject to known peer-reviews and are checked for accuracy and authenticity. While answers on Stack Overflow are also subject to peer-review, the standards of that review are not well known, if they even exist.

As such, while you may want to use Stack Overflow to provide direction for a paper, you would be wise to double check any answers you get, and see if you can find an established paper/article that supports that information. Then you can reference the official source, and give credit to Stack Overflow in general for helping with your research.

  • 4
    I would say in many cases the problem is more institutional than philosophical. There are a lot of excellent, rigorous online communities, and many parts of peer review can be just as much a popularity contest. However, if you're going to participate in academia, you have to play by their rules.
    – Robert Elwell
    Nov 11 '08 at 16:06
  • 1
    This answer makes a very good point. This is why linking to references and standards is so important when answering SO questions, even if the answer is obvious and can be tested within seconds.
    – Pekka
    Jan 31 '10 at 13:06
  • In other words: please do use StackOverflow as a resource when writing your paper. But not as a reference. Use stackoverflow to help point you to more authoritative locations. Jan 31 '10 at 15:00
  • 7
    To be fair, I don't think peer review process of low-quality publications is really better than SO.
    – mmx
    Feb 1 '10 at 16:21
  • "However, if you're going to participate in academia, you have to play by their rules." Yeah, when I had to write my thesis at college, they explicitly prohibited citing any online resources... They allowed to use it when doing a research, but they required the students to trace back everything to a printed book or journal.
    – Calmarius
    Sep 26 '13 at 14:27

Added to the excellent points above, bear in mind that the community-editable nature of the site means that any references you make could well be out-of-date / deleted / modified by the time your paper is published. There are mechanisms for looking back at earlier versions of a question or an answer, but please bear in mind that it is your academic reputation that's at stake, not that of the community.


There is one set of circumstances where I believe Stack Overflow should be cited:

If your primary source of information is Stack Overflow, and that information is unavailable elsewhere, and you can verify that information is correct (by testing), then I think it would be very bad manners not to cite Stack Overflow.

This is particularly important if the information sourced on Stack Overflow is central to your thesis.

Examples might be:

A discussion about an undocumented API reference that someone has discovered, and that you can verify by checking a compiled binary.

A programming technique that is unpublished elsewhere, but that can be demonstrated in practice.

  • Hi, so this is exactly the situation I'm in. In my paper I am describing a programming technique that as far as I can tell is unpublished elsewhere; or at the very least not any places that I can find. In my paper's Discussions section at the end I am talking about the relative infrequency of the technique, and I want to cite that the only place I've seen it was on StackOverflow. My question is, how do I cite an author? His username is "John".. Should I put the author as "John" in my bibliography?
    – NHDaly
    Dec 1 '13 at 18:56
  • That sounds reasonable to me.
    – Kramii
    Dec 1 '13 at 22:19

For academic reference purposes, treat Stack Overflow the same as you would treat Wikipedia - somewhere to start, but not definitive.

The exception to this is when you are quoting someone.


If you are trying to show what problems (or questions or issues, etc.) programmers have in real-life then a set of Stack Overflow questions may be a good source. (Think of using Stack Overflow as a sort of survey when you don’t need to connect the people that are taking part in your experiment.)

However if you are trying to say how an API works, then you better to point to the API documentation.


I take a contrary point of view, in at least one case. If you are benefiting substantially from code proffered by someone on SO, then you can verify that it works and public scrutiny via the up/down votes similarly subjects it to a form of lightly managed peer view. As a result, you are encouraged to cite the poster or the SO post for the source of code that you use.

There are cases where code is posted to SO that is quite a feat, and proper attribution is the professional thing to do.

As for opinions and whether or not SO is a "reliable source", that is immaterial in the case of code. For other SE sites, such as the math site, proofs may be given that are novel and not commonly known. For that, it is also reasonable to cite the author.

The tricky part is that successive edits and refinements may make attribution murky. I have no answer for that, yet.


I've seen more answers with wrong things (including posted by myself) than all right on Stack Overflow. You should be very careful with citing Stack Overflow in academic papers.

  • 2
    Unless of course the point of your academic paper is that working programmers don't know what the hell they are talking about.
    – Chris Morley
    Nov 11 '08 at 15:46

Simply put: NO.

From an academic point of view, SO is nothing more than a forum where a bunch of uncredited people discuss and rate themselves.


One thing that springs to mind are unofficial "polls." Like for example, you could cite "Is C more easily affected by buffer overflows?" (hypothetical topic) and use it as an anecdotal example to illustrate your point.

  • I doubt any poll on Stackoverflow would be "random" enough to be used in a professional paper or presentation -- there's a certain bias inherent in any poll give on a website.
    – mipadi
    Nov 11 '08 at 15:58

It would be a good idea to use Stack Overflow as a reference in some academic or professional presentation if you are using it as an example of an excellent community driven website with the aim of providing technical direction for its users.

Stack Overflow is a fantastic example of a late 2008 bleeding edge fully functional website. It's also remarkable that it is written using ASP.NET MVC technology which is just barely in beta.

Any of the current various merits of Stack Overflow are certainly reference-able with the caveat that, since this is a Beta website living on the cutting edge anything you reference may not exist 6 months or further from now.

So, as fodder for a presentation on late 2008 state-of-the-art technical community websites, Stack Overflow is perfect.


Neither Stack Overflow nor Wikipedia should be used as a reliable source.


Yes. But only for poking some fun with it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .