Skip to main content

ERC-4626 Vault Calculator

Convert shares ↔ assets, calculate APY and returns — works with any ERC-4626 vault

Vault state

Your position

Share price (assets per share)

1

Your shares

1,000

Asset value

1,000

Return projection

Current value

1,000

Projected value

1,105.16

Profit

+105.16

Future share price

1.105156

Deposit → shares conversion

Shares you receive

1,000

ERC-4626 formula: shares = assets × totalShares / totalAssets. This works for any compliant vault including Morpho, Yearn V3, Beefy, Balancer, and Rari.

About the Vault Calculator

ERC-4626 is the standard interface for tokenized vaults in DeFi. Vaults hold underlying assets (like USDC or ETH) and issue shares representing proportional ownership. As the vault earns yield through lending, farming, or other strategies, the share price increases — but the math for converting between shares and assets confuses many users.

This calculator implements the exact ERC-4626 formulas: share price = totalAssets / totalShares. Enter your vault state from any compliant protocol (Morpho, Yearn V3, Beefy, Balancer, Rari) to see your position value, project returns, and convert deposit amounts to expected shares.

How to use

  1. Find your vault totalAssets and totalShares from the contract or a dashboard.
  2. Enter them above along with your share balance.
  3. See your current asset value and share price.
  4. Use the projection tab to model returns at different yield rates.
  5. Use the deposit calculator to estimate shares from a deposit.

Frequently Asked Questions

Which protocols use ERC-4626?

Morpho Blue, Yearn V3, Beefy, Balancer boosted pools, Rari Fuse, Idle, and many others. Any contract implementing the ERC-4626 interface has totalAssets() and totalShares() functions that provide the inputs for this calculator.

Why does my share price increase over time?

As the vault earns yield, totalAssets grow while totalShares stay constant (unless new deposits occur). Since share price = totalAssets / totalShares, the price per share increases. Your shares represent a larger claim on the underlying assets.

How do I find totalAssets and totalShares for a vault?

Read totalAssets() and totalSupply() from the vault contract using any block explorer or our EVM Contract Reader. For Morpho vaults, the dashboard also displays these values. Alternatively, use the vault share price directly if the protocol exposes it.

Is this tool free to use?

Yes! This tool is 100% free. No signup, no credit card, no limits. It's part of Formatho's privacy-first developer toolkit.

Is my data safe? Does this tool send data to a server?

Absolutely. This tool runs entirely in your browser. Your data never leaves your device. Zero server-side processing, zero tracking.