Your daily coffee habit might be costing you just under $3 a cup, depending on where you get your caffeine fix. This means you could easily be spending about $100 or more a month to fuel your days. Just 20 years ago, that same cup would have cost you $1.79.

When the worldâ€™s largest coffee-producing countries â€” including Brazil, Vietnam, Colombia and Mexico â€” lose coffee trees or have challenges with exporting coffee, we see some of the biggest shifts in coffee prices. The effects of climate change might also be to blame for coffee bean shortages, according to BBC News. Droughts and heavy rains in coffee-producing countries means fewer exports. As a result, prices rise because of a global coffee shortage.

GOBankingRates used Squareâ€™s Coffee Report to identify the average cost of a cup of coffee in 2015, then calculated the cost for each year to 1940, adjusted for inflation. Find out how much that cup of coffee costs cost you the year you were born.

**Cost of Coffee in 1940:** $0.16

**Cost of Coffee in 1941:** $0.17

**Cost of Coffee in 1942:** $0.19

**Cost of Coffee in 1943:** $0.20

**Cost of Coffee in 1944:** $0.20

**Cost of Coffee in 1945:** $0.21

**Cost of Coffee in 1946:** $0.22

**Cost of Coffee in 1947:** $0.25

**Cost of Coffee in 1948:** $0.27

**Cost of Coffee in 1949:** $0.27

**Cost of Coffee in 1950:** $0.27

**Cost of Coffee in 1951:** $0.30

**Cost of Coffee in 1952:** $0.30

**Cost of Coffee in 1953:** $0.30

**Cost of Coffee in 1954:** $0.31

**Cost of Coffee in 1955:** $0.31

**Cost of Coffee in 1956:** $0.31

**Cost of Coffee in 1957:** $0.32

**Cost of Coffee in 1958:** $0.33

**Cost of Coffee in 1959:** $0.33

**Cost of Coffee in 1960:** $0.34

**Cost of Coffee in 1961:** $0.34

**Cost of Coffee in 1962:** $0.34

**Cost of Coffee in 1963:** $0.35

**Cost of Coffee in 1964:** $0.35

**Cost of Coffee in 1965:** $0.36

**Cost of Coffee in 1966:** $0.37

**Cost of Coffee in 1967:** $0.38

**Cost of Coffee in 1968:** $0.40

**Cost of Coffee in 1969:** $0.42

**Cost of Coffee in 1970:** $0.44

**Cost of Coffee in 1971:** $0.46

**Cost of Coffee in 1972:** $0.48

**Cost of Coffee in 1973:** $0.51

**Cost of Coffee in 1974:** $0.56

**Cost of Coffee in 1975:** $0.61

**Cost of Coffee in 1976:** $0.65

**Cost of Coffee in 1977:** $0.69

**Cost of Coffee in 1978:** $0.74

**Cost of Coffee in 1979:** $0.83

**Cost of Coffee in 1980:** $0.94

**Cost of Coffee in 1981:** $1.04

**Cost of Coffee in 1982:** $1.10

**Cost of Coffee in 1983:** $1.13

**Cost of Coffee in 1984:** $1.18

**Cost of Coffee in 1985:** $1.23

**Cost of Coffee in 1986:** $1.25

**Cost of Coffee in 1987:** $1.29

**Cost of Coffee in 1988: **$1.35

**Cost of Coffee in 1989:** $1.41

**Cost of Coffee in 1990:** $1.49

**Cost of Coffee in 1991:** $1.55

**Cost of Coffee in 1992:** $1.60

**Cost of Coffee in 1993:** $1.65

**Cost of Coffee in 1994:** $1.69

**Cost of Coffee in 1995:** $1.74

**Cost of Coffee in 1996:** $1.79

**Cost of Coffee in 1997:** $1.83

**Cost of Coffee in 1998:** $1.86

**Cost of Coffee in 1999:** $1.90

**Cost of Coffee in 2000:** $1.96

**Cost of Coffee in 2001:** $2.02

**Cost of Coffee in 2002:** $2.05

**Cost of Coffee in 2003:** $2.10

**Cost of Coffee in 2004:** $2.15

**Cost of Coffee in 2005:** $2.22

**Cost of Coffee in 2006:** $2.30

**Cost of Coffee in 2007:** $2.36

**Cost of Coffee in 2008:** $2.45

**Cost of Coffee in 2009:** $2.44

**Cost of Coffee in 2010:** $2.48

**Cost of Coffee in 2011:** $2.56

**Cost of Coffee in 2012:** $2.62

**Cost of Coffee in 2013:** $2.65

**Cost of Coffee in 2014:** $2.70

**Cost of Coffee in 2015:**

**Cost of Coffee in 2016:**

**Cost of Coffee in 2017:**

**Cost of Coffee in 2018:**

**Cost of Coffee in 2019:**

**Cost of Coffee in 2015:** $2.70

*Methodology: GOBankingRates used Squareâ€™s Coffee Report to get the average cost of a cup of coffee in 2015 and the BLS Inflation Calculator to find the cost of coffee each year since 1940, using 2015 as the base cost year.*

This article originally appeared on GOBankingRates.com: The Price of Coffee the Year You Were Born