The Mathematics of Compound Interest: Continuous Compounding Formulas and Long-Term Capital Growth
An analytical exploration of compound interest equations, the Rule of 72, discrete vs continuous compounding limits, and long-term portfolio modeling.
A comprehensive financial guide breaking down margin vs markup equations, common retail pricing errors, and unit economics calculations.
Calculators technical reference asset
In e-commerce, software SaaS pricing, and retail distribution, confusing Gross Margin with Markup is one of the most common—and financially catastrophic—mistakes business owners make. While both metrics describe the exact same dollar amount of profit, they express that profit as a percentage of two completely different financial bases.
Failing to understand this distinction can result in underpriced product catalogs, unexpected net losses, and flawed financial forecasts.
Suppose you purchase an item for a Cost of Goods Sold (COGS) of $50 and sell it for a Revenue of $100. Your gross dollar profit is $50 ($100 - $50).
• Gross Margin measures profit relative to SELLING PRICE: ($50 profit / $100 price) = 50% Margin.
• Markup measures profit relative to ACQUISITION COST: ($50 profit / $50 cost) = 100% Markup.
Although the transaction is identical, the markup percentage (100%) is double the margin percentage (50%). Confusing the two when setting target retail prices leads directly to severe revenue shortfalls.
Gross Margin represents the percentage of total sales revenue that a company retains after incurring the direct costs associated with producing or acquiring the goods sold:
Gross Margin % = [ (Revenue - Cost) / Revenue ] * 100
Because profit cannot exceed revenue in a normal sale, Gross Margin can never exceed 100%.
Markup represents the percentage amount by which the cost of a product is increased to arrive at the final retail selling price:
Markup % = [ (Selling Price - Cost) / Cost ] * 100
Because selling price can be multiples of acquisition cost, Markup can easily exceed 100%, 200%, or 500% (common in luxury goods and high-margin software).
To quickly convert between the two metrics mathematically:
• Convert Markup to Margin: Margin = Markup / (1 + Markup)
• Convert Margin to Markup: Markup = Margin / (1 - Margin)
For example, if your executive team mandates a 40% Gross Margin (0.40), the required markup you must apply to wholesale costs is 0.40 / (1 - 0.40) = 0.40 / 0.60 = 66.7% Markup.
Clear comprehension of margin versus markup math is indispensable for sound unit economics and sustainable business profitability. Always specify whether percentage targets refer to top-line margin or cost-basis markup when negotiating supplier terms and retail prices.
Try these free in-browser utilities mentioned in this guide
Calculate gross profit margin percentage, markup percentage, and total gross profit based on cost and revenue.
Calculate final sale prices, double stacked promo discounts, sales tax amounts, and total dollar savings instantly.
Calculate percentage values, percentage increases/decreases, discounts, and relative proportions.
An analytical exploration of compound interest equations, the Rule of 72, discrete vs continuous compounding limits, and long-term portfolio modeling.
Master standard marketplace image requirements (Amazon 2000×2000px 1:1, Shopify 2048×2048px, Etsy 4:3), aspect ratio preservation, and white backgrounds.
Explore how quantization, spatial frequency reduction, and entropy coding balance file size against visual clarity across JPEG, WebP, PNG, and AVIF.