Calculate Account Reserves
This tutorial shows how to look up and calculate the reserve of an XRP Ledger account. The reserve is the minimum amount of XRP an account must hold, based on its activity on the ledger.
- Section
- Tutorials
What you will do
You look up the current base reserve and incremental reserve values. You find out how many objects the account owns, which decides its owner reserve. Then you calculate the account's total reserve requirement.
What you need
You need a basic understanding of the XRP Ledger and a client library that is set up. The tutorial has example code in JavaScript, Python and Go.
The steps in short
After installing the library, you create a client connection to a server. You fetch the base and incremental reserve values with the server_info or server_state method. The example uses server_state, because it returns the values as whole drops and so avoids precision issues. A drop is the smallest unit of XRP. The two values are named reserve_base and reserve_inc. Next you call account_info and read OwnerCount, the account's total number of objects.
The calculation
The total reserve is the base reserve plus the incremental reserve multiplied by the owner count. The example prints the owner count and the total reserve in XRP.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made