Jupiterswap

Jupiterswap fees shape both quoted token output and the transaction budget.

Last updated -

Jupiterswap fees affect the tokens that you receive and the funds needed to complete a Solana swap. Jupiter's managed swap path includes a platform fee that varies with the token pair. Network fees and account deposits can create additional funding requirements, while gas sponsorship changes who pays those costs. The quote already incorporates the managed path's platform fee, so subtracting it again would understate the expected output. A useful budget separates quoted trading costs from separately funded transaction charges and refundable deposits. Comparing those amounts also requires identifying the integration path, the fee token, and the account that pays each charge.

The short version: A swap budget must cover separately funded transaction charges without subtracting platform fees that the quote already includes.

Fees Already Reflected in the Quote

A platform fee reduces the value available for an exchange, and its collection token determines which balance carries that deduction. Jupiter includes its platform fee in the managed swap quote. The rate follows the selected token pair and fee arrangement. Treat it as a parameter of that order; later swaps can have different rates. A smaller displayed platform fee does not establish better execution. The quoted exchange rate and available liquidity also affect the output.

Swap V2 exposes feeBps for the total swap fee rate and platformFee.feeBps for Jupiter's platform portion. Gas sponsorship can make these different. The feeMint field identifies the token collected. None of these fields substitutes for the separately reported network-fee and account-rent amounts.


Routing Choices and Net Output

The managed and custom build paths offer different fee treatment, so a comparison needs the same token pair and input amount.

Managed Swap Orders

The Swap V2 Meta-Aggregator compares available routing engines and returns an assembled transaction. Jupiter manages transaction landing through its execution service. This path applies Jupiter's platform-fee arrangement, or an active integrator referral arrangement. Broader routing competition can improve the quoted exchange even when a platform fee applies. Compare the expected output after the quoted fee, while accounting separately for costs that the wallet must fund.

Jupiterswap: Managed Swap Orders - illustration

Open full-size image

Custom Transaction Builds

The Swap V2 Router path uses Metis routing and returns instructions for a custom transaction. Jupiter does not charge its own swap fee on this build path. An integrator can still configure a platform fee, and the transaction still requires network funding. Custom submission through Jupiter's landing service requires a SOL tip that meets its current minimum. The service rejects transactions without a valid tip.

The wallet or application determines which API path it exposes. Compare actual quotes from the interface in use. Keep price impact and slippage separate from fee accounting: they describe exchange pricing and execution movement, not an additional fixed platform charge.


What Does a Gasless Swap Cost?

A gasless swap has another account pay transaction costs, with the economic treatment determined by the sponsorship arrangement.

Automatic Cost Recovery

Automatic Jupiter sponsorship can cover network charges and account rent on eligible low-SOL orders. The minimum trade size varies with current priority fees, and JupiterZ must not be the winning route. An integrator payer or configured referral parameters disable automatic sponsorship. A low-SOL order below the gasless minimum can return a quote without an executable transaction. Jupiter recovers sponsorship costs through an increased swap fee, reducing output. The total fee rate therefore matters alongside the platform component. The gasless label identifies who supplies SOL for execution, while the quote shows any recovered costs.

Jupiterswap: What Does a Gasless Swap Cost? - diagram

Open full-size image

Other Fee Payers

Market-Maker Payment

When JupiterZ wins a Swap V2 order, its market maker pays signature and priority fees. Output-account rent has separate treatment. Jupiter can cover that rent without referral fees; with referral fees, the trader must fund required output-account rent.

Integrator Payment

An integrator can supply a different payer to cover gas and rent. On managed orders, the documented payer setup uses referral parameters for cost recovery. Both the trader and payer sign, and routing is limited to Metis. The payer arrangement and any integrator fee belong together when assessing its cost.


Network Fees and Account Deposits

Solana transaction fees consume SOL, while account deposits reserve SOL for storage and may remain recoverable after the swap. The network fee includes a signature-based charge and any prioritization fee. A tip is a separate payment when the selected submission method uses one. The budget must identify the account responsible for each payment, including a sponsor where applicable. Managed Swap V2 orders report amounts and payers for signature fees, prioritization, and estimated rent. The reported prioritization amount includes any tips.

A Solana account's required storage deposit depends on its data size. Creating a missing token account can therefore require funds beyond the exchange amount. That deposit remains with the account while it holds the tokens; an authorized account closure can return its lamports to a chosen destination. Account requirements also mean a first exchange into a token may need different funding from a later exchange using the existing account. A quote's rent requirement should follow the accounts that the actual transaction creates.


Unsent Quotes and Processed Failures

An unsigned quote preserves the option to stop before transaction charges arise, while submitting a swap exposes the payer to processing costs. Compare both choices using the same input amount, expected output, fee payer, and recoverable account deposit. The fee rate and priority charge come from the live order.

Leaving an unsigned quote unused preserves the existing balances and creates no onchain transaction fee. Successful execution commits the exchange and its swap-fee transfers. In the edge case where an instruction fails during processing, the swap's instruction changes revert. A processed Solana transaction can charge its network fee even when instruction execution fails. The fee payer bears that charge. A successful exchange has no built-in undo; swapping back requires a new trade with a new quote and costs.

  • If the quoted platform fee is already included, use the quoted output without deducting that fee again.
  • If the wallet pays network charges, reserve the SOL required by the transaction before committing the input amount.
  • If a sponsor pays, identify the sponsorship type and any cost recovery included in the swap fee.
  • If execution fails after processing, account for the network charge without recording a completed token exchange.
  • If transaction status remains unresolved, establish its outcome before submitting a replacement that could execute independently.

Confirmed transaction status and balance changes distinguish completed swaps from failed exchanges. A submission identifier alone cannot establish whether the recipient received tokens. An unresolved submission needs a status check before the budget can classify its costs.


Settlement Amounts and Future Budgets

Successful execution of a managed Swap V2 order separates amounts handled by the route from amounts deducted from and credited to the wallet. For input-side fee collection, totalInputAmount includes the fee, while inputAmountResult records the amount entering the route. For output-side collection, outputAmountResult records route output before that fee, and totalOutputAmount records the final amount credited. Compare amounts in the same token and units. A difference between an earlier quote and the received balance needs this accounting before attributing it entirely to fees.

Keep the quoted fee arrangement and payer information with the confirmed transaction record. A later swap can involve different liquidity, priority settings, account-creation needs, or sponsorship eligibility. Reusing an old percentage or rent estimate can misstate its funding requirement. Separate refundable storage funding from consumed transaction fees when recording costs across repeated trades.

For an output-side swap fee, outputAmountResult - totalOutputAmount gives the collected amount in the output token.

Practical questions about Jupiterswap

Does an Active Referral Replace Jupiter's Standard Platform Fee?

An active referral arrangement on Swap V2 managed orders replaces the separate Jupiter platform fee. Jupiter takes a share of the integrator fee within that arrangement. This treatment belongs to the managed order path; custom builds use a different integrator-fee mechanism. The returned fee fields establish the arrangement applied to the particular order.

Why Might a Browser Extension Increase the Quoted Swap Fee?

A browser extension can inject a referral fee into a Jupiter swap request. That changes the fee arrangement even though the underlying swap service remains Jupiter. An unexpected increase warrants checking extensions that interact with the trading page. Comparing an unsigned quote with the extension disabled can help identify the added charge.

Are API Token Amounts Expressed in Whole Tokens?

Swap API amounts use the token's smallest units, so a raw amount string is not automatically a whole-token balance. The token's decimal precision determines the conversion to its displayed amount. Keep input-token and output-token quantities separate, and compare a fee amount only with balances denominated in the same token.

Is a Token-2022 Transfer Charge the Same as Jupiter's Platform Fee?

A Token-2022 transfer fee comes from the token mint's transfer-fee configuration, separately from Jupiter's platform-fee arrangement. When that extension applies, it withholds part of the transfer on the destination account. The mint's configured rate, maximum fee, and effective configuration govern that charge. Not every Token-2022 mint enables transfer fees.

Do Basis Points and Percentages Use the Same Scale?

One basis point represents 0.01%. Divide a fee rate stated in basis points by 100 to express it as a percentage. For an amount calculation, the proportional rate is the basis-point value divided by 10 000. The applicable token amount and fee-collection side still matter when interpreting a swap deduction.

Will an Empty Token Account Automatically Return Its Rent Deposit?

An empty token account does not automatically return its storage deposit. An authorized closure transfers its lamports to the selected destination. Ordinary token accounts require a zero token balance; wrapped SOL accounts have an exception, and token extensions can add closure requirements. The account that originally paid for creation does not automatically receive the recovered deposit.

Can a Preflight Simulation Error Create an Onchain Transaction Fee?

A simulation that stops the request before network submission does not itself create an onchain transaction fee. That differs from a transaction that the network processes and records as failed. A preflight error also does not resolve the status of an earlier submission of the same transaction. Its transaction status remains a separate question.

Does a Priority Fee Guarantee That the Swap Will Execute?

A priority fee increases the likelihood of earlier scheduling without guaranteeing successful execution. The transaction must still satisfy its validity window and the programs' execution conditions. Market movement or an instruction error can prevent the exchange despite the fee setting. Increasing priority does not remove the network charge when a processed transaction fails.