GDP Calculator

GDP (₹ lakh crore)—
Net exports (₹ lakh crore)—
Domestic demand (₹ lakh crore)—

How GDP Calculator is calculated: GDP = private consumption + investment + government spending + exports − imports

What is GDP?

Gross domestic product, or GDP, is the total value of everything a country produces in a year. It adds up what households consume, what businesses invest, what the government spends, and what the country sells abroad, minus what it buys from abroad. With consumption of 100, investment of 30, government spending of 20, exports of 15, and imports of 18, all in lakh crore rupees, GDP is 147 lakh crore rupees.

GDP is the most widely quoted number in economics. It says how big an economy is, whether it is growing or shrinking, and how it compares with other countries. India's nominal GDP was about 331 lakh crore rupees in FY 2024-25, which made it one of the largest economies in the world.

The expenditure method used by this calculator is one of three ways to measure GDP. The other two are the production method, which adds up the value added by each industry, and the income method, which adds up wages, profits, and taxes. All three should give the same answer, because they measure the same production from different sides.

GDP is measured in a currency, usually the local one, and it can be nominal or real. Nominal GDP uses current prices, while real GDP uses the prices of a base year, so it shows growth without the effect of inflation. This calculator works with whichever figures you enter, and the article explains the difference.

How the GDP formula works

The formula adds consumption, investment, and government spending, then adds net exports, which are exports minus imports. With consumption of 100, investment of 30, government spending of 20, exports of 15, and imports of 18, the sum is 100 plus 30 plus 20 plus 15 minus 18, which is 147 lakh crore rupees. Net exports are 15 minus 18, which is minus 3, because the country imports more than it exports. Domestic demand is 100 plus 30 plus 20, which is 150 lakh crore rupees.

Imports are subtracted because they are not produced at home. A car imported from Japan and sold in India adds to consumption, but it was not produced in India, so it must be taken out again. The subtraction is not a penalty; it is a correction, so that GDP counts only what the country itself produced.

The formula works the same way in any currency and at any scale. The calculator uses lakh crore rupees because that is the unit Indian GDP is quoted in, but the maths is identical in dollars, euros, or any other unit. A percentage calculator can work out each component's share of the total if you want to see the structure.

Consumption: the number people get wrong

The most common error is confusing GDP with income. GDP measures production, not what people earn, though the two are linked: the value produced becomes income for someone, as wages, profits, or taxes. A country can have a high GDP and low incomes if the production is capital-intensive, or a low GDP and high incomes if it earns from abroad.

The second error is forgetting that consumption is the largest part. In most economies, private consumption is 55% to 70% of GDP, so a fall in household spending moves GDP more than any other component. Investment and government spending matter, but consumption is the engine.

The third error is counting government spending twice. Government spending in the formula is the government's own consumption and investment, not transfer payments such as pensions and subsidies, which are not production. A pension paid to a retiree is a transfer, and it counts only when the retiree spends it.

The fourth error is comparing nominal GDP across years. Nominal GDP grows with inflation as well as with real production, so a 10% rise in nominal GDP with 6% inflation is only about 4% of real growth. Compare real GDP, or divide by the price index, to see the true change.

A worked example: consumption 100, investment 30, government 20

Take the default example on this page. Consumption is 100, investment is 30, government spending is 20, exports are 15, and imports are 18, all in lakh crore rupees. GDP is 100 plus 30 plus 20 plus 15 minus 18, which is 147 lakh crore rupees. Net exports are 15 minus 18, which is minus 3 lakh crore rupees. Domestic demand is 100 plus 30 plus 20, which is 150 lakh crore rupees.

Now a second case: consumption of 200, investment of 50, government spending of 40, exports of 30, and imports of 25, all in lakh crore rupees. GDP is 200 plus 50 plus 40 plus 30 minus 25, which is 295 lakh crore rupees. Net exports are 30 minus 25, which is 5 lakh crore rupees. Domestic demand is 200 plus 50 plus 40, which is 290 lakh crore rupees.

The two examples show the trade effect. The first economy imports more than it exports, so its GDP is 3 lakh crore below its domestic demand, while the second exports more than it imports, so its GDP is 5 lakh crore above its domestic demand. Net exports are the difference between what a country makes and what it uses.

Who uses a GDP calculator

Students use it to learn the expenditure method. The formula is the first thing taught in macroeconomics, and the calculator turns the symbols into numbers: C plus I plus G plus X minus M, with each letter a real figure that can be changed to see the effect.

Economists use it to break down growth. A rise in GDP can come from consumption, investment, government spending, or net exports, and knowing which one drove the growth says whether it will last. Consumption-led growth is steadier than government-led growth, and investment-led growth builds the future.

Policymakers use it to judge the economy. A GDP that is growing at 7% a year with low inflation is a healthy economy, while one growing at 7% with high inflation is mostly prices rising. The calculator gives the level; the growth rate and the inflation rate give the judgement.

Investors use GDP to compare countries. A CAGR calculator can work out the growth rate from two GDP figures, and that rate is one of the first numbers in any country comparison, because faster-growing economies usually offer better returns.

GDP vs GNP: what is different

GDP counts what is produced inside a country's borders, whatever the nationality of the producer, while GNP, or gross national product, counts what the country's citizens produce, wherever they are. A Japanese factory in India adds to India's GDP and Japan's GNP, and an Indian worker in Dubai adds to the UAE's GDP and India's GNP.

Use GDP to judge the size of an economy and GNP to judge the income of its citizens. For most countries the two are close, because the flows in and out roughly balance, but for countries with many citizens working abroad, such as India, GNP is higher than GDP, because of the income sent home.

The difference is the net factor income from abroad: the income citizens earn abroad minus the income foreigners earn at home. India receives more than it pays out, so its GNP is above its GDP, while a country that hosts many foreign workers has a GNP below its GDP.

Common GDP mistakes

The first mistake is treating GDP as a measure of wellbeing. GDP counts production, not happiness, health, or equality, and a country can have a high GDP with poor health and wide inequality. GDP is a measure of size, not of welfare, and it should never be quoted as if it were.

The second mistake is ignoring the informal economy. In India, a large share of production happens outside formal records, and the official GDP may miss some of it. The number is an estimate, and revisions are common, sometimes by lakhs of crores, as better data arrives.

The third mistake is comparing GDP across countries without adjusting for prices. A dollar buys more in India than in the United States, so comparing GDP at market exchange rates understates India's real size. Purchasing power parity, or PPP, adjusts for price differences and gives a fairer comparison.

The fourth mistake is forgetting that GDP is revised. The first estimate of a year's GDP is based on partial data, and it is revised several times over the following years. A growth figure quoted in the news is provisional, and the final number can differ by a full percentage point.

How to use this GDP calculator

Enter the private consumption, investment, government spending, exports, and imports, all in the same unit, such as lakh crore rupees. The results update instantly: the GDP, the net exports, and the domestic demand. Use figures from the same year and the same source, such as the national accounts.

Compare years by entering each one in turn and noting the GDP. An inflation calculator can adjust the figures for price changes, so you can compare real growth rather than nominal growth. Keep the unit the same when comparing, or the totals will not mean the same thing.

Everything runs in your browser. No account, no sign-up, no data sent anywhere. Your figures never leave your device. Run it with the latest national accounts, break the growth down by component, and the structure of the economy will show itself.

Frequently Asked Questions

GDP is the total value of everything a country produces in a year. By the expenditure method, it is private consumption plus investment plus government spending plus exports minus imports. India's nominal GDP was about 331 lakh crore rupees in FY 2024-25. It measures the size of an economy, not the wellbeing of its people.

Because imports are not produced at home. A car imported from Japan and sold in India adds to consumption, but it was not produced in India, so it must be taken out again. The subtraction is a correction, not a penalty, so that GDP counts only what the country itself produced. An economy that imports more than it exports has negative net exports.

Nominal GDP uses current prices, while real GDP uses the prices of a base year, so it shows growth without the effect of inflation. If nominal GDP rises 10% with 6% inflation, real growth is only about 4%. Economists usually quote real GDP growth, because it shows whether the country actually produced more, rather than just charging more.

GDP per capita is GDP divided by the population, and it is a rough measure of the average income. India's GDP of about 331 lakh crore rupees divided by about 140 crore people gives roughly 2,36,000 rupees per person per year. It is an average, not a typical income, because it ignores how the income is distributed.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.