zpostcode
Simple moving average vs. exponential moving average
Jun 27, 2026 9:49 PM

  

Simple moving average vs. exponential moving average1

  Technical tools for analyzing trends.Source: StockCharts.com. Annotations by Encyclopædia Britannica. For educational purposes only.When it comes to analyzing stock trends, price charts are an essential tool. A chart not only helps you contextualize a stock’s current price relative to its past movements, but also clearly shows whether a stock is trending up, down, or sideways. To enhance trend analysis, traders often use moving averages to filter out market noise and reveal underlying trends that can be drowned out by price volatility. Some traders use moving averages to time their market entries and exits.

  Several types of moving averages exist; two of the most popular are simple moving averages (SMAs) and exponential moving averages (EMAs). Although they share a few similarities, they’re calculated differently and can serve different purposes.

  A review of moving averagesIn technical analysis, a moving average is a calculation of successive prices—of a stock, commodity, or other asset—averaged over a period of time. Moving averages can be collected from any time series—by the minute, hour, day, week, etc.—and the collection periods in a moving average can vary. For example, popular daily moving averages include 50-, 100-, and 200-day moving averages. Technical traders use moving averages for several types of price information:

  Spotting the direction of a trend. If a moving average is rising, the stock is likely in an uptrend. If it declines, it’s in a downtrend. If it’s fluctuating with no clear direction, it’s probably a range-bound (“sideways”) market.Reducing market noise. Moving averages highlight broader trends while “smoothing out” short-term price fluctuations.Finding levels of support and resistance. Certain moving averages, such as 50-day and 200-day, are important psychological levels that traders view as barriers to further market movement. So a market that’s been rallying might run into selling pressure (“resistance”) at a key moving average; a market that’s falling might find buyers “supporting” the market at one.Also, if the stock’s price is above its moving average, and both the price and the moving average are rising, it indicates bullishness. The opposite is true if a stock’s price is below its moving average and falling. Traders have countless ways of slicing and dicing moving averages and other technical indicators, but these are the basic ways to read a moving average.

  Simple moving average (SMA) vs. exponential moving average (EMA)Simple moving averages (SMAs) and exponential moving averages (EMAs) are similar in that they each track price movement during defined periods, but the EMA formula adds a component that gives more weight to recent prices than older ones. When prices take a sharp turn, the EMA responds more quickly than the SMA. Both lag behind real-time prices, but because SMAs give equal weight to the oldest and the most recent data points in the collection period, this “lag factor” is much more pronounced in SMAs than EMAs.

  The difference in weighting might not seem like much, but it’s enough to make SMAs and EMAs better suited to different trading strategies. The choice between an SMA and an EMA often comes down to how each is calculated.

  Calculating the SMAThe simple moving average is appropriately named; its calculation is straightforward.

  Choose a time period. (for example, 20 days).Add the closing prices for each day in that period (for example: day 1 close + day 2 close + … + day 20 close).Divide the total by the number of periods (20-day sum ÷ 20). The result is the simple moving average for today.Update the calculation daily by adding the newest closing price and removing the oldest (in a 20-day SMA, you’d add today’s closing price and drop the one from 21 days ago).   Using X for the number of periods, the formula is:

  In a simple moving average, each day in the period carries equal weight. In a 20-day SMA, that means each closing price accounts for 5% of the total.

  Calculating the EMAAn exponential moving average is a bit more involved to calculate because it uses a variable that gives more weight to recent prices than to older ones. This added weighting helps smooth out the lag factor that’s more pronounced in the equal-weighted SMA. Some chart watchers refer to this extra variable as the weighting multiplier, while others call it the smoothing factor.

  Although the EMA calculation is a bit more complex, most online brokerages or charting tools—such as StockCharts.com—can plot it for you.

  Calculate the weighting multiplier (smoothing factor) using the formula:

  (2 ÷ (X + 1)).

  For a 20-day EMA, the multiplier would be (2 ÷ 21) = 0.0952, or 9.52%.Find the SMA for your chosen time frame (e.g., 20 days).

  That value becomes the first EMA would be equal to its SMA.

  So, on day 20, the EMA equals the 20-day SMA).Use the EMA formula for each new day:For the next (and all subsequent) collection periods, multiply the difference between the current closing price and the previous EMA by the multiplier, then add that figure to the previous day’s EMA. This formula gives more weight to recent prices while still factoring in older data.Expressed as a formula:

  The EMA formula is designed to put extra emphasis on the most recent data points. For example, in a 20-day EMA, the most recent closing price constitutes 9.52% of the total (versus 5% in an SMA—the same as the other 19 data points). On the next day, a new closing price receives the 9.52% weighting, and the weightings of all the other days fall slightly.

  The sum of all EMA weightings must equal 100%, so in a 20-day EMA, roughly half of the days carry more than 5% weight and the other half less. Because every EMA starts with a baseline SMA, and each new value builds on the one before it, the longer your historical data set, the more accurate your EMA becomes. Ideally, a daily EMA would include price data going back a full year—about 256 trading days—or more.

  Use SMAs to see longer-term trends and support and resistance levelsSimple moving averages are effective tools for analyzing longer-term trends. Financial publications and institutions—even those that typically concentrate on fundamental analysis rather than technical analysis—display charts with the 50-day and 200-day moving averages because they provide clear insights when illustrating trends.

  The market has been trending upward for most of the 10-year period.The market has tended to “bounce” off the 200-period SMA, an important psychological support level that, in a bull market, typically signals “buy.” The 50-period SMA has also seen frequent rebounds, although not as significant as its slower (i.e., longer-term) counterpart. Longer-term investors can use SMAs to gauge trends and identify potential support and resistance levels. In an uptrend, SMAs can be seen as levels of buying support (floors). In a downtrend, SMAs tend to act as resistance (ceilings).

  

Simple moving average vs. exponential moving average2

  Figure 1: SMAs AND THE LONG TREND. During the 10-year bull market of the 2010s and 2020s, the S&P 500 (SPX – candlesticks) rarely dropped below the 200-day simple moving average (red line), and even when it did, it quickly moved back above that key level.Source: StockCharts.com. Annotations by Encyclopædia Britannica. For educational purposes only.EMAs are more effective in a short-term trading contextEMAs are more sensitive to price changes than SMAs. They’re more suited for short-term trading contexts in which you have a tight time window to detect and respond to price fluctuations (i.e., make a trade). In other words, when using EMAs, you’re not just looking to analyze trends over time; you may be using moving averages as a key signal for market entries or exits.

  Numerous trading systems and technical indicators are based on EMAs. For example, some traders optimize EMAs by plotting several at once—two, three, or more (also called “ribbons”). 

  The Guppy multiple moving average (GMMA) is an EMA ribbon developed by trader Daryl Guppy (see figure 2). The GMMA comprises 12 EMAs—six long-term and six short-term. The short-term EMAs, shown in green and tightly clustered near the price line, reflect short-term traders’ sentiment. The long-term EMAs, shown in blue and more widely spaced, represent longer-term investor sentiment.

  

Simple moving average vs. exponential moving average3

  Figure 2: MATCHING RIBBONS. An EMA ribbon, such as the Guppy multiple moving average (GMMA), can help you visualize (and perhaps trade) changes in short- and long-term sentiment. Source: StockCharts.com. For educational purposes only.Traders use EMA ribbons like the GMMA to spot shifts in market sentiment. For example, when short-term EMAs turn lower while long-term EMAs remain in an uptrend, it may signal a potential “buy-the-dip” opportunity. On the flip side, when short-term EMAs rise during a longer-term downtrend, some traders sell into the rally—a strategy known as “fading the rally.”

  When both sets of EMAs converge, it may reflect a period of market calm or small up-and-down movements (“choppiness,” in trader lingo).  

  The bottom lineSimple and exponential moving averages are basic tools in technical analysis that also serve as the foundation for other technical indicators and trading systems. The key difference between them is how sensitive each one is to recent price data, which affects how traders use them. In the simplest case, you can plot either type to analyze short- and long-term trends.

  Like most technical indicators, SMAs and EMAs are often most effective when used alongside other tools and indicators, which can help confirm—or at least add context to—the information you get from them. Although moving averages can help identify trends and signal potential entry or exit points, their real value lies in how they fit into your trading and investing strategy.

Comments
Welcome to zpostcode comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
Recommend >
How have the Olympics changed?
  While many associate the modern Olympics with tradition, the quadrennial sporting event is continually changing. There’s the size of the Games: at the Athens Olympics in 1896, 241 athletes competed in 43 events, while the 2020 Tokyo Games (delayed until 2021 owing to the COVID-19 pandemic) featured 11,420 competitors and 339 events. And then there’s the pageantry. Notably, the opening...
history of Côte d’Ivoire
     Côte d'Ivoirehistory of Côte d’Ivoire, a survey of notable events and people in the history of Côte d’Ivoire. The country, located on the coast of western Africa, is also known as the Ivory Coast. It is made up of four natural regions: the coastal fringe, the equatorial forest zone, the cultivated forest zone, and the northern savanna. The Akan,...
Maria Skłodowska-Curie Museum
     The Maria Skłodowska-Curie MuseumThe Maria Skłodowska-Curie Museum in the replicated town house in which Marie Curie was born in Warsaw, Poland.(more)Maria Skłodowska-Curie Museum, institution dedicated to the life and work of Marie Curie located in a gracious town house in the New Town district of central Warsaw, Poland. The house is a replica of the 18th-century house in which...
Mulholland Drive
     Naomi Watts (left) and Laura HarringPublicity still from the 2001 film Mulholland Drive, featuring Naomi Watts (Betty Elms/Diane Selwyn) and Laura Harring (Rita/Camilla Rhodes).(more)Mulholland Drive, American surrealist thriller and neo-noir film, released in 2001, that is considered one of director David Lynch’s finest works. The movie is noted for its dreamlike, nonlinear structure and its exploration of the dark...
Information Recommendation
Iron Dome
     Iron DomeA Tamir interceptor missile being launched from an Iron Dome air defense battery in Ashdod, Israel, on November 12, 2019.(more)Iron Dome, short-range mobile air defense system developed for Israel by Rafael Advanced Defense Systems and Israel Aerospace Industries, with additional support from Raytheon. First deployed in 2011, Iron Dome constitutes the innermost layer of the tiered Israeli air...
Makar Sankranti
  Makar Sankranti, Hindu festival in January celebrating the entrance of the sun into the astrological sign of makara (corresponding to Capricorn) and the beginning of the sun’s uttarayana (northward journey).   Makar Sankranti occurs on January 14 (or 15 during a leap year). Unlike most other holidays in Hinduism that are determined according to the lunisolar Hindu calendar, this festival is...
Leningrad Symphony No. 7 in C Major, Op. 60
     Dmitri ShostakovichDmitri Shostakovich, early 1940s.(more)Leningrad Symphony No. 7 in C Major, Op. 60, symphony by Dmitry Shostakovich, known as “Leningrad.” The work premiered informally on March 5, 1942, at Kuybyshev (now Samara), a provincial city alongside the Volga, where the composer and many of his colleagues were seeking refuge from World War II. Five months later, it would be...
Hungarian Rhapsody No. 2 in C-Sharp Minor
     Franz LisztHungarian Rhapsody No. 2 in C-Sharp Minor, the second and most famous of the 19 Hungarian Rhapsodies composed for piano by Franz Liszt between 1846–53. Originally composed in 1851 for solo piano, the work was soon converted into orchestral form by Liszt’s colleague, Franz Doppler, who also added a piano duet version more than two decades after the...
The Home Depot, Inc.
  The Home Depot, Inc. is the largest retail home improvement and construction supply company in the world, with more than 2,300 stores in the United States, Canada, and Mexico. The company was established in 1978, and today employs nearly 475,000 workers. It is headquartered in Atlanta, Georgia.   Founding and early growth The Home Depot was founded in 1978 by Arthur...
MySQL
  MySQL, open-source relational database management software, owned by the computer software company Oracle, that allows users to interact with large amounts of data across multiple databases. MySQL is one of the most popular database management programs used worldwide.   Though SQL is sometimes referred to as “S-Q-L,” it is more often called “sequel,” in acknowledgment of its historical roots as “Structured...
Native American Graves Protection and Repatriation Act
  Native American Graves Protection and Repatriation Act (NAGPRA), U.S. law that regulates the handling of Indigenous human remains and cultural items. Passed in 1990, the Native American Graves Protection and Repatriation Act (NAGPRA) requires federal agencies and institutions that receive money from the federal government to return remains and cultural objects of Indigenous peoples in what is now the United...
history of Indonesia
  history of Indonesia, a survey of notable events and people in the history of Indonesia. Located off the coast of mainland Southeast Asia in the Indian and Pacific oceans, Indonesia was formerly known as the Dutch East Indies (or Netherlands East Indies). Although Indonesia did not become the country’s official name until the time of independence, the name was used...