If you have been paying attention in school, you have probably encountered 0^0 in two places that disagree with each other.

Who is wrong? Neither. The two answers come from two different questions, and both questions have valid places in mathematics. The pragmatic rule is: in the ordinary school setting — where 0^0 crops up in a polynomial formula or an exponent law — treat it as 1. In the calculus/analysis setting — where you might be computing a limit of the form 0^0 — treat it as undefined until you do more work. Here is why both are correct.

The quick answer for exam purposes

In an Indian school exam (NCERT, JEE, CBSE, ICSE), the safe working rule is

0^0 \;=\; 1 \quad \text{in the context of algebra, polynomials, and combinatorics.}

That is how textbooks evaluate formulas like (1 + x)^n = \sum_{k=0}^{n} \binom{n}{k} x^k at x = 0. At x = 0, the k = 0 term is \binom{n}{0} \cdot x^{0} = 1 \cdot 0^{0}, and the whole sum has to equal 1^n = 1. That forces 0^0 = 1. If you had said "undefined," the formula would have a hole at x = 0, which nobody wants.

Unless a problem is explicitly about limits or discontinuities, use 0^0 = 1 and move on. Most JEE-level questions that make you encounter 0^0 are really testing the binomial theorem or an empty product, and they all work cleanly when you define 0^0 = 1.

So why does the textbook ever say "undefined"?

Because the word "undefined" is about one specific thing that 0^0 doesn't have: a consistent answer when you think of it as a limit. And in calculus and real analysis, limits are the whole point. Let me show you what goes wrong.

Start with the expression x^y, where you can vary both x and y and watch how the value changes as you slide the inputs towards 0. Intuition says there should be some natural answer at x = y = 0. But there isn't — the value depends on how you approach the origin.

Path 1. Slide y to 0 first, then x to 0. At y = 0 with x > 0, the value x^{0} = 1 for every positive x. So as x \to 0^{+}, the limit is 1.

Path 2. Slide x to 0 first, then y to 0. At x = 0 with y > 0, the value 0^{y} = 0 for every positive y. So as y \to 0^{+}, the limit is 0.

Two paths, two different answers. The expression x^y does not converge to a single value as (x, y) \to (0, 0); it depends on the direction. A quantity that has no single limit is called an indeterminate form, and 0^0 is the classical example.

Two limit paths towards zero to the zero giving different answers A plot with t from zero to one on the horizontal axis. Two curves are drawn. Path one is t to the t, which dips from one at t close to zero, down to about zero point six nine, and rises back to one. Path two is zero to the t, which is zero for every positive t. A draggable point slides along a horizontal line and reports the value of each path at that t. As t approaches zero, path one limits to one and path two limits to zero, so zero to the zero has no consistent limit. Two paths → two limits. That's why "undefined" in calculus. 0 1 1 0 Path 1: tᵗ → 1 Path 2: 0ᵗ → 0 ↔ drag t towards 0
Two functions that both "look like $0^0$" at the origin. $t^{t}$ (upper curve) dips to about $0.69$ at $t \approx 0.37$ and climbs back to $1$ as $t \to 0^{+}$. $0^{t}$ (lower curve) is exactly zero for every $t > 0$. Drag the red point along $t^{t}$ towards zero and read both values: the first approaches $1$, the second stays at $0$. The expression $0^0$ inherits both limits simultaneously — which is why, as a limit, it has no answer.

This is the sense in which 0^0 is undefined. Not because it is mysterious or philosophically weird, but because it is an indeterminate form — the kind of expression that l'Hôpital's rule is designed to help you resolve, case by case, depending on which specific functions approach zero.

Why algebra says 1 and calculus says "undefined"

The two are not contradicting. They are answering different questions.

Algebra asks: "What is 0^0 as a single number, if we choose a value that keeps all our formulas working?"

The formulas that need 0^0 to have a value are things like:

All four demand 0^0 = 1 to work without special cases. So by convention, in algebraic contexts, 0^0 = 1.

Calculus asks: "If I take the limit of f(x)^{g(x)} as x \to a, and both f(a) = 0 and g(a) = 0, what is the answer?"

The answer is "it depends on f and g." You cannot just plug in — you have to work out the limit properly, often by taking logarithms. Sometimes the answer is 1, sometimes 0, sometimes something else. So 0^0 as a limit form is indeterminate.

Both statements are true. One is a value; the other is a limiting behaviour. They do not contradict because they are about different kinds of thing.

What to do in an exam

Why you have heard both

The short answer: you heard 0^0 = 1 in algebra class (where it is the correct convention for formulas to keep working) and 0^0 undefined in calculus class (where it refers to a limit form that has no consistent answer). Both teachers were correct in their own contexts, and the two statements do not clash.

The longer answer is that 0^0 is one of a small family of indeterminate forms — the others being \frac{0}{0}, \frac{\infty}{\infty}, 0 \cdot \infty, \infty - \infty, 1^{\infty}, and \infty^0 — that each carry a "value when simply defined" and a "behaviour when taken as a limit." In algebra we care about the value; in calculus we care about the limit. Most school friction about 0^0 is really friction between those two modes of reasoning.

Once you notice the pattern, you will see the same structure everywhere in mathematics. A symbol can carry a definition and a limiting-behaviour story, and the two can look contradictory until you realise they answer different questions.

Related: Exponents and Powers · What Could 0^0 Possibly Be? Two Limit Paths, Two Different Answers · Why a⁰ = 1: The Halving Staircase That Forces the Answer · Why 2^0 = 1 and Not 0