Rebalance a portfolio to target weights
Turn target weights into share-level buy and sell orders: current vs target allocation, drift, cash use and the trades needed to rebalance.
How many shares do I buy or sell to get back to my target weights?
Rebalancing compares each holding's current weight with its target, converts the difference into a dollar amount using total portfolio value, and divides by price to get whole-share orders. Sells fund buys; leftover cash stays as residual.
What you see in Market Ontology
The live product, read-only. Your own work opens here after checkout.

Start the job
Whole-share rebalance preview
3 proposed trades from the entered snapshot.
- AAPL
- +15 shares
- MSFT
- -1 shares
- SPY
- -9 shares
25.4% current → 35.0% target
36.3% current → 35.0% target
38.3% current → 20.0% target
- — Entered prices are reference prices.
- — Broker support, sellable quantities, current cash, limits, and quotes are rechecked before order review.
Deterministic whole-share planner