"What would my bag be worth at a 50 million market cap?" is one of the most common questions in memecoin chats. The math is one division, but the useful part is everything around it: what to do when the supply changes, and why a market cap is not money you can take out.
Disclosure: I am the founder of copy.top. We publish a free memecoin market cap calculator. The code below is a minimal version written for this article.
The formula
market cap = price x supply multiple = target cap / market cap today price at target = price today x multiple bag at target = bag value today x multiple The last two lines are only true if the supply does not change. If new tokens are issued before the target is reached, the same market cap is spread over more tokens, and each one is worth less.
The code
interface TargetInput { priceNow: number; capNow: number; targetCap: number; bagValueNow: number; supplyGrowthPct?: number; // new tokens issued before the target, % of today's supply } interface TargetResult { multiple: number; priceAtTarget: number; bagAtTarget: number; } export function atTargetCap(i: TargetInput): TargetResult { for (const [name, v] of Object.entries(i)) { if (name !== "supplyGrowthPct" && !(typeof v === "number" && v > 0)) { throw new RangeError(`${name} must be a positive number`); } } const growth = i.supplyGrowthPct ?? 0; if (!(growth >= 0)) throw new RangeError("supplyGrowthPct must be zero or more"); const multiple = i.targetCap / i.capNow; const dilution = 1 + growth / 100; return { multiple, priceAtTarget: (i.priceNow * multiple) / dilution, bagAtTarget: (i.bagValueNow * multiple) / dilution, }; } // Sanity check: the supply implied by a price and a market cap. export const impliedSupply = (price: number, cap: number) => cap / price; Validating every field in one loop keeps the error messages specific without repeating the same if five times. The optional supply growth defaults to zero, which is the case the simple formula assumes.
Examples
atTargetCap({ priceNow: 0.002, capNow: 2_000_000, targetCap: 50_000_000, bagValueNow: 200 }); // multiple: 25, priceAtTarget ≈ 0.05, bagAtTarget: 5000 atTargetCap({ priceNow: 0.002, capNow: 2_000_000, targetCap: 50_000_000, bagValueNow: 200, supplyGrowthPct: 10, }); // multiple: 25, priceAtTarget ≈ 0.0455, bagAtTarget ≈ 4545.45 impliedSupply(0.002, 2_000_000); // 1000000000 With 10% more tokens in circulation, the same 25x in market cap turns 200 into about 4,545 instead of 5,000. Before using the simple multiple, check whether the supply can still grow: some tokens can mint more, others have locked tokens that unlock later.
Use impliedSupply to catch bad inputs. If the price and market cap you typed imply a supply that does not match the token, one of the two numbers is stale or measures something else (circulating supply against fully diluted value, for example).
Why the result is not money
- Market cap is a price multiplied by a count. It is not the amount of money that went into the coin, and it is not what holders could get out.
- Selling moves the price. On a coin with thin liquidity, selling a bag at the target can push the price down well below the target, so you get less than
bagAtTarget. - The calculation says nothing about how likely the target is. Most memecoins never reach a large market cap, and most lose almost all of their value.
If you only want the numbers, the hosted calculator is free, with no sign up. Nothing here is financial advice. Trading memecoins is risky, you can lose everything you put in.

