Insights/STOCK

Margin & Leverage Calculator: How It Works, Formula and a Worked Example

Position size, margin blocked and the loss a stop-loss would cost at a given leverage. Here is the formula, a worked example, the mistakes to avoid, and a free calculator with a downloadable PDF report.

Abhishek sharma

17 Sep 20265 min read

Margin & Leverage Calculator: How It Works, Formula and a Worked Example

Ask five people in India how this is calculated and you will get five confident answers, most of them slightly wrong. It is not their fault — the arithmetic is rarely explained, only the result is shown. So let us do it the other way round: first the logic, then the formula, then your own numbers in the margin & leverage calculator.

Cover image slot — add a screenshot or illustration from Admin → Blog when it is ready.

Prefer to start with your own figures? Use the Margin & Leverage Calculator now, or continue for the formula and a worked example.

How this is worked out

Leverage lets you control a position larger than your cash. The margin blocked is the position value divided by the leverage. Because the whole position moves, a small adverse move is a large percentage of your own money — the calculator shows exactly how large.

The formula behind it:

Position = Cash × Leverage · Margin = Position ÷ Leverage · Loss = Position × Stop-loss %
Symbol What it means
Cash Money available in your account
Leverage Multiple offered by the broker
Stop-loss % Adverse move at which you exit

Nothing is rounded away quietly and nothing is assumed on your behalf. If a figure appears in the result, it came from something you entered.

A worked example you can follow

₹1,00,000 at 5× controls ₹5,00,000; a 2% adverse move costs ₹10,000, which is 10% of your cash.

Change any one input and watch the result move — that sensitivity is the real lesson. It is far more useful than memorising a single outcome, because your own rate, tenure or contribution will never match the example exactly.

Using the Margin & Leverage Calculator, step by step

  1. Open the Margin & Leverage Calculator.
  2. Enter your figures. Use the ones on your statement, sanction letter or scheme document rather than a remembered number.
  3. Read the result card — the headline figure plus the breakdown that produced it.
  4. Adjust one input at a time to see what genuinely moves the outcome.
  5. Tap Download PDF to keep a copy of the calculation, with your inputs and assumptions printed on it.

The PDF takes a few seconds to build because it is a properly typeset report, not a screenshot. You will see a progress message while it is being prepared, and the download starts on its own.

Practical pointers

  • Decide the rupee loss you accept before deciding the position size.
  • Practise leveraged trades with virtual money on the VIA Trade Simulator first.

Common mistakes worth avoiding

  • Using the full buying power the broker offers.
  • Ignoring the interest charged on the borrowed amount.

If you want to go a level deeper afterwards, read up on position sizing and margin calls. Both come up the moment you start comparing options seriously.

Interactive calculator

Try the Margin & Leverage Calculator

Enter your own figures below. The same calculator and PDF report remain available on the focused calculator page.

For FY 2026-27 · India

Price per unit or per share.

Units or shares (lot size × lots for F&O).

The exchange/broker margin rate for this position — check your broker.

Quick examples

Margin required₹25,000

50 × ₹2500 at 20% margin (5.0× leverage).

Y1Y5Y6
P&L (₹)Return on margin (%)
What you are seeing: A 1% price move changes P&L by ₹1,250, which is 5.0% of your margin.
Position value₹1,25,000
Margin required₹25,000
Leverage5.00×

What each result means

Position value

What it is: Price × quantity.

Your value: ₹1,25,000

Full exposure.

Margin required

What it is: Position value × margin %.

Your value: ₹25,000

Cash blocked in your account.

Leverage

What it is: Position value ÷ margin.

Your value: 5.00×

Gains and losses are magnified by this.

Year-by-year breakdown

Margin Calculator year-by-year schedule
Price moveNew price (₹)P&L (₹)P&L % of marginPosition value (₹)
-5%₹2,375.00−₹6,250-25.0%₹1,18,750
-2%₹2,450.00−₹2,500-10.0%₹1,22,500
-1%₹2,475.00−₹1,250-5.0%₹1,23,750

How to read this: each row shows P&L on a long position if the price moved by that percentage. With leverage, small moves are large relative to margin.

Showing the first 3 of 6 years. Want charts, formulas and the full schedule? Get the detailed PDF.

What this calculator does

This calculator shows the margin blocked for a position at a given margin rate, the leverage that implies, and how price moves affect P&L relative to margin.

What your result means

Leverage magnifies losses as much as gains. SEBI's peak-margin rules require brokers to collect upfront margin; the rate depends on the instrument.

Formula

1. Margin and leverage

Margin = P × Q × m; Leverage = 1 ÷ m

Symbols

m
Margin rate (decimal)

Worked example

₹2,500 × 50 × 20% = ₹25,000; leverage 5×.

Working for your numbers

  1. Position = ₹2500 × 50 = ₹1,25,000
  2. Margin = ₹1,25,000 × 20% = ₹25,000
  3. Leverage = 100 ÷ 20 = 5.00×

Frequently asked questions

Where do margin rates come from?

Exchanges set SPAN + exposure margins for F&O; for cash segment intraday, SEBI's peak margin framework sets minimums. Your broker's rate may be higher.

Is trading on margin risky?

Yes. Losses can exceed what you expect relative to your capital.

When should I talk to a professional instead?

Before a real decision, especially a large or long-term one, speak to a SEBI-registered investment adviser or a qualified professional. This page is educational only.

Symbols and assumptions

P
Price
Q
Quantity
m
Margin rate
  • Long position.
  • Charges not included.
  • Margin rate is your input.

Sources and review

Reviewed 2026-09-29 · Next review 2027-09-29

  • SEBI — Peak margin framework circular
  • NSE — Trading charges and transaction costs
Not investment advice. VIA Capital is not a SEBI-registered investment adviser and this calculator does not recommend any fund, product or investment strategy. Market-linked investments are subject to market risk; assumed returns are not indicative of future results.
Important limitation. This is an educational estimate based solely on the values and formula shown. It is not financial, tax or investment advice. Actual returns will differ from any assumed rate. Verify with a qualified financial professional before making any investment decision.
Stock AverageStock ReturnDividend YieldDividend IncomeROIBrokerage
Open the full calculator

Numbers that belong next to this one

A single figure rarely settles a decision. These usually get checked in the same sitting:

  • Brokerage & Charges — Estimate total transaction charges for Indian stock trades.
  • Break-Even Price — Find the selling price needed to cover all costs.
  • Option Profit & Loss Calculator — Payoff at expiry for a bought or written call or put, with the break-even price.

What else you will find on VIA Capital

The calculator is one corner of a much bigger free toolkit. While you are here:

  • Explore 56+ financial calculators for investments, loans, tax, retirement, small-savings schemes and market maths in the VIA Capital calculator library.
  • PDF reports on every calculator, so a calculation you did today can be opened again in six months.
  • Practise decisions with virtual money in the VIA Trade Simulator, including charts, an option chain and an order book. No real trades are placed.
  • Read market breadth visually with the Nifty 50, Bank Nifty and Sensex heatmap.
  • Follow dates, price bands, subscription figures and listing history in the IPO Centre.
  • Continue with daily financial insights and explainers written in the same plain-English style.

New tools and sections go live regularly, and each one gets written up here the same way.

Questions people ask us

Is the Margin & Leverage Calculator free to use? Yes. Every calculator on VIA Capital is free, works without a login, and nothing you type is stored on our servers.

How accurate is it? The arithmetic is exact — it is the formula shown above, nothing hidden. Accuracy of the answer depends on your inputs. Rates, tenures and charges change, so use the figures from your own statement or sanction letter rather than a number you remember.

Can I save or share the result? You can download a formatted PDF report of your calculation and share it with your family, your CA or your bank. The download link sits right under the result.

Does it work on a phone? It does. The margin & leverage calculator is built mobile-first, which is how most people in India actually search for "margin calculator".

Is this investment advice? No. VIA Capital is an education platform. We show you the maths and the assumptions; the decision, and the responsibility for it, stays with you. For anything personalised, speak to a SEBI-registered professional.

The short version

Position size, margin blocked and the loss a stop-loss would cost at a given leverage. The formula is public, the assumptions are printed on the page, and the calculation is yours to keep as a PDF.

👉 Run your own numbers in the Margin & Leverage Calculator

VIA Capital publishes financial education only. Nothing here is investment advice or a personalised recommendation, and no calculator output should be treated as a promise of returns.

Educational content only. Educational content only. Not investment advice or a personalised recommendation.

Written by

Abhishek sharma

Discussion (0)

Log in to join the conversation.

Sign In to Comment

Trending insights

01

Jio Platforms IPO Subscription Status: Day-by-Day Demand, Price Band and Allotment Dates

02

National Stock Exchange (NSE) IPO: Subscription Guide and Key Details

03

VIA Trade Simulator: Practise Market Decisions Without Risking Real Money

04

Advance Tax Calculator: How It Works, Formula and a Worked Example

Keep learning

Free practice, no tips or calls.

NISM prep Calculators Practice simulator

More from Insights

View Full Archive
STOCK
4 MIN

Read the Market at a Glance with VIA Capital’s Index Heatmap

STOCK
5 MIN

Option Profit & Loss Calculator: How It Works, Formula and a Worked Example

STOCK
4 MIN

Investment Comparison: How It Works, Formula and a Worked Example

Explore VIA Capital

More ways to learn markets with us

Free, educational tools built for Indian investors, market news, IPO tracking, calculators and expert conversations. No tips, no buy/sell calls.

Financial News

Fast, verified market shorts updated through the day.

IPO Center

Live IPOs, subscription data and listing performance history.

Expert Connect

Talk to verified advisors and certified professionals.

Calculator Hub

SIP, tax, loan and capital gains tools with reports.

NISM Prep

Mock tests and question banks for certification exams.

Finance Dictionary

A–Z explanations of market and tax terminology.

Stay connected

IPO and market updates, learning notes and new tools. Education only, no tips.

Join TelegramWhatsApp channelWhatsApp group
VIA CapitalVIA Capital

Free financial education for everyone. Learn markets, investing and personal finance through clear, unbiased lessons.

Learn. Understand. Research. Grow.

hello@viacapital.in@viacapitalofficial
instagramyoutubewhatsapp
Open VIA FlowLens

Markets

  • Market Intelligence
  • Market Heatmap
  • IPO Centre
  • News in 60 Words
  • Market Explained
  • Big Investors
  • Broker Desk

Learn

  • Financial Education
  • Learn in 5
  • NISM Mock Tests
  • Finance Dictionary
  • Daily Quiz
  • Books & Podcasts
  • Certifications
  • Skills
  • VIA Rooms Community

Tools

  • Calculators
  • VIA Tax Hub
  • Income Tax Calculator
  • Trade Simulator
  • VIA FlowLens
  • Chart Patterns
  • Investment Centre
  • Career Compass
  • VIA Wealth Connect
  • VIA Capital Pro (soon)

Events

  • Events Hub
  • Browse Events
  • Courses
  • List an Event
  • Advertise
  • Events Support

Company

  • About Us
  • Insights
  • Latest Updates
  • Careers
  • Join as an Advisor
  • Partner Institutes
  • Partner broker: Alice Blue
  • FAQ
  • Contact & Support
  • My Account
Markets
  • Market Intelligence
  • Market Heatmap
  • IPO Centre
  • News in 60 Words
  • Market Explained
  • Big Investors
  • Broker Desk
Learn
  • Financial Education
  • Learn in 5
  • NISM Mock Tests
  • Finance Dictionary
  • Daily Quiz
  • Books & Podcasts
  • Certifications
  • Skills
  • VIA Rooms Community
Tools
  • Calculators
  • VIA Tax Hub
  • Income Tax Calculator
  • Trade Simulator
  • VIA FlowLens
  • Chart Patterns
  • Investment Centre
  • Career Compass
  • VIA Wealth Connect
  • VIA Capital Pro (soon)
Events
  • Events Hub
  • Browse Events
  • Courses
  • List an Event
  • Advertise
  • Events Support
Company
  • About Us
  • Insights
  • Latest Updates
  • Careers
  • Join as an Advisor
  • Partner Institutes
  • Partner broker: Alice Blue
  • FAQ
  • Contact & Support
  • My Account
VIA Tax Hub · 8+ years of tax filing experienceITR, GST, registrations and compliance, handled on WhatsApp.
Your feedback is important. Tell us what more we can add or change DM us on Instagram or mail us. Please text us anytime.
Important Disclosures

VIA Capital provides educational and informational content for learning and awareness purposes. Nothing on this platform should be construed as investment, financial, tax or legal advice, or as a recommendation to buy or sell any security.

IPO information is provided for educational and informational purposes. GMP figures are unofficial and unregulated and may be sourced from third-party public trackers. GMP is not an official exchange price and should not be treated as a guaranteed indication of listing performance.

The VIA Capital Simulator is an educational virtual trading environment using simulated capital. It does not execute real securities transactions or provide access to real-money trading.

Market information may come from third-party providers. Availability, update frequency and trading-session status vary by feature; verify important figures with the relevant exchange or official source.

Read the full Risk Disclosure & Disclaimer

Partnerships & investment | VIA Capital is founded by Abhishek Sharma and is open to conversations with prospective leadership, investors and institutional partners. Enquiries: abhishek@viacapital.in

VIA CAPITAL

© 2026 VIA Capital. All rights reserved. Operated by Viacapital Finance. Education only, not investment advice.

Risk DisclosurePrivacyTermsRefundsNISM TermsEditorial PolicyCorrectionsSitemapDesigned by GMT World