---
title: freeCollateral
description: AVM in a position that is not locking outstanding debt.
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

`collateral − lockedCollateral`. Floors at `0`. This is the AVM the holder can withdraw or sell without first repaying or surrendering.

## Import

```ts
import { freeCollateral } from "@repo/contract-client/math";
```

## Usage

```ts
const free = freeCollateral(position, snapshot.floorPriceWad);
```

Also available as `sv3.position.getFreeCollateral(market, owner)` (loads chain state).

## Return Value

`AvmAtoms` — 18-decimal token amount.

## Parameters

### position

- **Type:** `PersonalPosition`

```ts
freeCollateral(position, snapshot.floorPriceWad);
```

### floorPrice

- **Type:** `Wad`

Current floor, usually `snapshot.floorPriceWad`.

```ts
freeCollateral(account.position, account.snapshot.floorPriceWad);
```

## Error

None beyond invalid floor inputs inside [collateralForDebtUp](/developers/math/collateral-for-debt-up) (`floor` must be positive when debt > 0).

## Tips

- Pause does not change this number. [getMaxActions](/developers/math/get-max-actions) zeros withdrawable size when paused.
