HomeLearnInvesting Basics › What Are Moving Averages? (SMA vs EMA Explained)

What are moving averages? (SMA vs EMA)

Intermediate Updated June 2026

Short answer: A moving average is a line that shows the average price of a stock over the last several days, redrawn each day so it slides forward over time. It smooths out the daily jumps so you can see the real trend — up, down, or sideways. The two main types are the SMA (simple moving average), which treats every day equally, and the EMA (exponential moving average), which gives recent days more weight so it reacts faster.
A moving average is a line that shows the average price of a stock over the last several days, redrawn every day so it slides forward over time. It takes the jumpy, zig-zag daily prices and smooths them into one calm line, so you can see the real direction — up, down, or sideways. The two main kinds are the SMA (simple moving average), which counts every day equally, and the EMA (exponential moving average), which gives recent days more weight so it reacts faster.

If charts feel intimidating, relax. By the end of this guide you'll read a moving average as easily as you read the weather. This is one of the friendliest tools in technical analysis, and it's a great first step after you learn how to read a stock chart.

What is a moving average, really?

Imagine you check a stock's price every day and write it down. Some days it's up, some days it's down. The numbers bounce around so much that it's hard to tell if the stock is actually rising or just having a noisy week.

A moving average fixes this. Instead of looking at one day, it averages the last few days together and plots that as a single dot. Tomorrow it does the same — dropping the oldest day and adding the newest. String those dots together and you get a smooth line that "moves" along with the price. That's why it's called a moving average.

Think of it like your weight. Your weight on the scale jumps around daily — water, food, sleep. But your weight averaged over 30 days tells the honest story: are you trending up or down? A stock's moving average does exactly that for its price.

How do you calculate a simple moving average (SMA)?

The SMA is the easiest one, and you can do it on your fingers. You add up the closing prices for a number of days, then divide by that number. That's it.

Worked example — a 5-day SMA: Say OGDC (Oil & Gas Development Company, on the PSX) closes these five days at:

Add them: 100 + 102 + 101 + 104 + 108 = 515. Divide by 5 = Rs 103. That Rs 103 is your first dot.

The next day, OGDC closes at Rs 110. You drop Day 1 and add the new day, then average those five (102 + 101 + 104 + 108 + 110 = 525, divided by 5 = Rs 105). The window has "moved" one step forward — and so has your line.

In a 5-day SMA, every day counts the same: the price from 5 days ago matters just as much as yesterday. That makes the SMA steady and calm, but also a little slow to notice when things change.

What is an exponential moving average (EMA)?

The EMA answers one complaint about the SMA: "Why should a price from weeks ago count as much as yesterday's? Recent news matters more!"

So the EMA gives more weight to recent days and less to older ones. The math behind it is a little heavier (don't worry — every charting app does it for you automatically), but the idea is simple:

Because recent prices push harder, the EMA hugs the price more closely and turns faster when the trend changes. When Apple jumps after an earnings report, its EMA reacts within a day or two, while its SMA takes longer to catch up.

SMA vs EMA: which one should a beginner use?

Neither is "better" — they're built for different jobs. Here's the honest trade-off:

A simple rule of thumb: if you check stocks once a week, lean SMA. If you trade actively, lean EMA. Many people start with the SMA because it's easier to understand and less jumpy. See the infographic below for a side-by-side picture.

What do the numbers like 50-day and 200-day mean?

You'll constantly see phrases like "the 50-day moving average" or "the 200-day." The number is just how many days the line averages. Nothing fancy.

Shorter number = faster and noisier. Longer number = slower and calmer. For example, LUCK (Lucky Cement on the PSX) trading above its 200-day line tells you the long-term trend is healthy, even if it had a rough week.

How do you actually read a moving average?

This is where it pays off. Once the line is on your chart, ask three simple questions:

The line also acts like a floor or ceiling. Traders watch whether a stock like FFC (Fauji Fertilizer) "bounces" off its 50-day moving average — a bounce up suggests buyers are stepping in there.

The one thing every beginner must remember

A moving average is a rear-view mirror, not a crystal ball. It's built entirely from prices that already happened, so it can only confirm a trend — it can't predict the future. Pros call this a "lagging" indicator.

That's not a flaw, it's the whole point: it tells you the trend clearly so you don't get fooled by noise. But never trade on a single line alone. Pair it with other tools like the RSI indicator to get a fuller picture. And if you invest by faith-based rules, you can start from our screened list of halal stocks on the PSX.

Ready to see moving averages drawn on real PSX and US charts? Create a free account and watch the smooth line appear over any stock you pick.

Quick summary

A moving average smooths jumpy prices into one trend line. The SMA weighs every day equally and stays calm; the EMA favors recent days and reacts faster. The number (50, 200) is how many days it averages — shorter is faster, longer is calmer. Read it by watching its direction, whether price is above or below it, and where lines cross. It confirms trends; it doesn't predict them.

]]>

Key takeaways

Track your halal portfolio free

Screen any PSX or US stock for Sharia compliance, track your portfolio, and get weekly AI picks — free.

Get started free

Frequently asked questions

What is the difference between SMA and EMA in simple terms?

Both draw a smooth trend line, but they weigh the days differently. The SMA (simple moving average) treats every day equally — yesterday counts the same as 50 days ago. The EMA (exponential moving average) gives more weight to recent days, so it hugs the price more closely and turns faster when the trend changes. Use the SMA for a calmer, steadier view of the big trend, and the EMA when you want to catch changes early. The trade-off: the EMA reacts faster but also gives more false alarms.

What does a 50-day or 200-day moving average mean?

The number is simply how many days of prices the line averages. A 50-day moving average is the average closing price over the last 50 days — it shows the medium-term trend. A 200-day moving average covers the last 200 days and shows the long-term trend, which is why many investors watch it to judge a stock's overall health. Shorter numbers (like 9 or 20 days) hug the price and react quickly; longer numbers move slowly and stay calm.

Is the EMA better than the SMA?

Neither is 'better' — they answer different questions. The EMA reacts faster, so short-term and active traders often prefer it to catch turns early. The SMA is slower and steadier, so long-term investors like it for seeing the big trend without getting shaken by every wiggle. Faster also means more false signals, so the right choice depends on how quickly you want to react and how much noise you can tolerate.

Can moving averages predict where a stock will go?

No. A moving average only summarizes prices that have already happened — it is a rear-view mirror, not a crystal ball. It is a 'lagging' indicator, meaning it confirms a trend after it has begun rather than calling the top or bottom in advance. It is genuinely useful for telling you which way a stock has been trending and for spotting when that trend changes, but you should always combine it with other tools and never trade on a single line alone.

What is a moving average crossover?

A crossover is when two moving averages of different lengths cross each other, which traders read as a possible change in trend. When a faster (shorter) line crosses above a slower (longer) line, it is often seen as a bullish 'go up' signal; when it crosses below, it is seen as a bearish 'go down' signal. The famous 'golden cross' (50-day rising above the 200-day) and 'death cross' (50-day falling below the 200-day) are crossovers. They are popular but not foolproof, so treat them as one clue among many.

Keep learning

← Previous
What Are Support and Resistance Levels? A Beginner Guide
Next →
What Is the RSI Indicator? A Beginner's Guide
Sources & further reading: Pakistan Stock Exchange · SECP Jamapunji — investor education · US SEC — Investor.gov

Educational only — not financial advice.