---
title: getMinimumBalanceForRentExemption
hideTableOfContents: true
h1: getMinimumBalanceForRentExemption RPC Method
---

Returns minimum balance required to make account rent exempt.

<DocSideBySide>

<DocLeftSide>

### Parameters

<Parameter type={"usize"} optional={true}>
  the Account's data length
</Parameter>

<Parameter type={"object"} optional={true}>

Configuration object containing the following fields:

<Field
  name="commitment"
  type="string"
  optional={true}
  href="/docs/rpc/index.mdx#configuring-state-commitment"
/>

</Parameter>

### Result

`<u64>` - minimum lamports required in the Account to remain rent free

</DocLeftSide>

<DocRightSide>

### Code sample

```shell
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
  {
    "jsonrpc": "2.0", "id": 1,
    "method": "getMinimumBalanceForRentExemption",
    "params": [50]
  }
'
```

### Response

```json
{ "jsonrpc": "2.0", "result": 500, "id": 1 }
```

</DocRightSide>
</DocSideBySide>
