In the philosophy of language, the distinction between sense and reference was an idea of the German philosopher and mathematician Gottlob Frege in 1892 (in his paper "On Sense and Reference"; German: "Über Sinn und Bedeutung"), reflecting the two ways he believed a singular term may have meaning.
The reference (or "referent"; Bedeutung) of a proper name is the object it means or indicates (bedeuten), whereas its sense (Sinn) is what the name expresses. The reference of a sentence is its extension, whereas its sense is the thought that it expresses. Frege justified the distinction in a number of ways.
Much of analytic philosophy is traceable to Frege's philosophy of language. Frege's views on logic (i.e., his idea that some parts of speech are complete by themselves, and are analogous to the arguments of a mathematical function) led to his views on a theory of reference.