sweep_all sends your entire unlocked balance to one address in a single command, with the fee taken out of the amount, so nothing is left behind. It is what you use to empty a wallet, move funds to a new wallet or a hardware wallet, or consolidate many small outputs into one. Because a Monero transaction is capped in size, a wallet with many outputs may be swept in several transactions, and the CLI tells you how many before you confirm. The catch is privacy: spending many outputs together tells the chain they belong to the same owner, so sweep on purpose, not by habit.
This guide follows the command definitions in monero-wallet-cli 0.18.5.4 (src/simplewallet/simplewallet.cpp), the wallet library and the consensus limits in the same source, plus transaction sizes read from our own node, checked in November 2026.
What "outputs" are, and why you have many
Monero has no account balance stored anywhere. Your balance is the sum of separate outputs you received: every payment to you is at least one output, and every payment you send usually returns a change output to you. After a year of use, a wallet can easily hold dozens or hundreds of outputs, some of them tiny.
A normal transfer picks just enough outputs to cover the amount. sweep_all spends all of them (or all in the subaddresses you choose).
The sweep commands
| Command | Usage in 0.18.5.4 | What it does |
|---|---|---|
sweep_all | sweep_all [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] [outputs=<N>] <address> (or index=all) | Send all unlocked balance to an address |
sweep_account | sweep_account <account> [index=...] [<priority>] [<ring_size>] [outputs=<N>] <address> | The same, from a given account |
sweep_below | sweep_below <amount_threshold> [index=...] [<priority>] [<ring_size>] <address> | Send only outputs smaller than a threshold |
sweep_single | sweep_single [<priority>] [<ring_size>] [outputs=<N>] <key_image> <address> | Send exactly one output, identified by its key image, "without change" |
sweep_unmixable | sweep_unmixable | Legacy: old pre-RingCT outputs; not relevant for new wallets |
The ring size argument is accepted for compatibility, but the network requires ring size 16 since August 2022, so leave it out.
The index parameter
From the help text: if index=<N1>[,<N2>,...] or index=all is given, "the wallet sweeps outputs received by those or all address indices, respectively. If omitted, the wallet randomly chooses an address index to be used."
That last sentence surprises people. Within an account, sweep_all without index= sweeps the outputs of one subaddress chosen at random, not the whole account. To empty everything, use index=all:
sweep_all index=all 8XXXX...destination
This behaviour exists for privacy: it avoids combining outputs from different subaddresses unless you ask for it. Our subaddress guide explains why mixing them can link them.
The outputs parameter
"If the parameter outputs=<N> is specified and N > 0, wallet splits the transaction into N even outputs." For example sweep_all index=all outputs=4 <your address> sends everything to yourself as four equal outputs. That is useful if you want to make several payments soon without waiting: each output you hold can be spent independently, while change from a single output is locked for 10 blocks after each spend. Our confirmations guide covers the lock.
What the wallet shows before sending
The CLI never sends a sweep without asking. You see one of two prompts:
Sweeping <amount> for a total fee of <fee>. Is this okay?Sweeping <amount> in <n> transactions for a total fee of <fee>. Is this okay?
The second appears when the sweep does not fit in one transaction.
Why one sweep can become several transactions
Every transaction has a maximum weight. In the consensus code, from version 8 onwards a transaction is limited to "50% of the minimum block weight" minus a small reserve: 300000 / 2 - 600, so 149,400 bytes. Each input adds a ring of 16 members and a signature. On our node, adding a second input to a one-input payment grows it from about 1.5 kB to 2.2 kB, roughly 0.7 kB per extra input; a five-input transaction was 4.3 kB. Extra outputs cost little by comparison, thanks to Bulletproofs+ (see Monero Bulletproofs).
So, as a rough estimate from those sizes, a single transaction can spend on the order of two hundred inputs before it hits the limit. A wallet with more outputs than that is swept in batches, each a separate transaction with its own fee.
What a sweep costs
Fees are charged per byte, so a sweep's fee grows with the number of inputs. Sweeping 50 outputs costs roughly as much as 25 two-input payments. The wallet uses the network's current fee estimate and your chosen priority; the live estimate is on our network page, and our Monero transaction fee guide explains priorities.
Two practical tips:
- Use the lowest priority for consolidation. Nothing depends on it confirming in the next block.
- Sweep when blocks are not full. Our mempool page shows how many transactions are waiting.
Dust: sweep_below
"Dust" means outputs so small that spending them costs a large share of their value. sweep_below 0.0005 <address> sends only outputs below 0.0005 XMR. It is a tidy-up tool, but check the prompt: if the total fee is close to the amount swept, it may not be worth doing at all. The RPC has a similar sweep_dust method.
If a wallet holds only dust, even a sweep can fail. The CLI then says: "Failed to find a way to create transactions. This is usually due to dust which is so small it cannot pay for itself in fees, or trying to send more money than the unlocked balance, or not leaving enough for fees." In that case the outputs are, in practice, worth less than the fee to move them. They do no harm sitting in the wallet; they simply stay part of your balance.
sweep_single: one output, exactly
sweep_single sends one specific output, chosen by its key image, "to an address without change". The incoming_transfers available verbose command lists your outputs with their key images. This is the precise tool when you want to move one particular payment and nothing else, for example to keep funds from two sources separate.
The privacy trade-off
Monero hides which output a transaction spends by mixing it with 15 decoys. When a transaction spends many inputs at once, an observer still cannot tell which ring member is real in each ring, but the transaction itself shows that all its real inputs were controlled by one wallet. If those outputs came from different parts of your life, a sweep ties them together on the chain.
Sensible habits:
- Sweep only what you mean to combine. Use
index=andsweep_singleto keep separate sources separate. - Do not sweep right after receiving many payments from the same source; the timing adds to the link.
- Moving to a new wallet (a hardware wallet, a new seed) is a legitimate reason to sweep everything; accept the link once rather than many times.
Our article on whether Monero is traceable explains these heuristics in more depth.
Sweeping in the GUI and Feather
- Monero GUI. In Transfer, the button next to the amount field, with the tooltip "Send all unlocked balance of this account", fills in
(all). The confirmation dialog then shows the full amount minus fee. The GUI's advanced options also have a Sweep button, but that one is for "Unmixable outputs", the legacy kind. - Feather. The Coins tab lists every output. Select one or more and choose Sweep output or Sweep selected outputs. The dialog lets you set a Number of outputs and offers Send to self (churn), which sends the selected outputs back to your own wallet. See the Feather wallet card and our Feather vs Monero GUI comparison.
Sweeping with monero-wallet-rpc
The RPC methods match the CLI: sweep_all (with account_index, subaddr_indices or subaddr_indices_all, outputs, priority), sweep_single (by key_image) and sweep_dust. Use do_not_relay: true first to see the fee, then relay. Our monero-wallet-rpc guide covers authentication and the rest of the API.
Consolidating on a schedule
Some users, especially those who receive many small payments such as miners or shops, consolidate regularly so that later payments stay small and cheap. A reasonable routine:
- Wait until a batch of outputs has at least 10 confirmations.
- Sweep one subaddress at a time with
sweep_all index=<n> <your own address>, so different sources are not combined in one transaction. - Use low priority and check the total fee in the prompt.
- Verify the new output on our explorer by the transaction hash the wallet prints.
For a shop, sending each day's takings to a separate cold-storage address instead of back to the hot wallet does the consolidation and the security step at once; see Monero cold storage and how to accept Monero payments.
Common problems
| Problem | Cause |
|---|---|
| "No unlocked balance in the specified account" or a small sweep | Recent funds are still locked for 10 blocks |
| Only part of the balance moved | index= was omitted, so one random subaddress was swept |
| Several transactions instead of one | Too many inputs for one transaction; normal |
| Fee higher than expected | Many inputs; fees are per byte |
| Hardware wallet takes long | The device signs each input; expect many confirmations on the device for a big sweep |
Our recommendation
For wallet tips, releases and security warnings, these Telegram channels are worth following:
- cryptoresearch@cryptoresearchOPEN@cryptoresearch: research and explainers
- Crypto_Crime_News@Crypto_Crime_NewsOPEN@Crypto_Crime_News: fake wallet sites, scams and exploit warnings
FAQ
What does sweep_all do in Monero?
It sends all of your unlocked balance to one address, taking the fee out of the amount, in one or more transactions.
Why did sweep_all not send my whole balance?
Without index=all, it sweeps one randomly chosen subaddress. Locked funds (received in the last 10 blocks) are also left out.
Is sweep_all bad for privacy?
It links the outputs it spends as belonging to one wallet. Use it when you mean to combine them, such as moving to a new wallet.
How do I send my entire balance in the Monero GUI?
In Transfer, use the "send all" button next to the amount ("Send all unlocked balance of this account"), which fills in (all).
What is the difference between sweep_all and sweep_single?
sweep_all spends all outputs of the chosen subaddresses; sweep_single spends exactly one output, identified by its key image, without change.
Can I split a sweep into several outputs?
Yes, with outputs=<N>. The wallet splits the swept amount into N even outputs.
Does sweep_all include locked funds?
No. Only unlocked outputs are swept. Funds received in the last 10 blocks stay in the wallet until they unlock, after which you can sweep again.
Can I sweep to a subaddress?
Yes. The destination can be a primary address, a subaddress or an integrated address, like any other transfer.
