> ## Documentation Index
> Fetch the complete documentation index at: https://docs.picon.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Price math

> Computing a bin's price without an RPC round trip

`getBaseBinPrice(binStep)`, `getBinPrice(baseBinPrice, binId)`, and
`getBinPriceFromStep(binStep, binId)` are direct `bigint` ports of the on-chain Q64.64 price
math. They're useful for computing a bin's price without an RPC round trip — e.g. when picking
`lowerBinId`/`upperBinId` for a new position before it exists on-chain. `getBinPrice`/
`getBinPriceFromStep` return `undefined` if `binId` is outside the representable range for that
`binStep`:

```ts theme={null}
import { getBinPriceFromStep } from "@picon-finance/dlmm-sdk";

const rawPrice = getBinPriceFromStep(pool.data.binStep, pool.activeBinId); // Q64.64, or undefined
```

See [Bins and pricing](/concepts/bins-and-pricing) for the underlying formula and why every
bin's price is fully deterministic from `bin_step` and `bin_id` alone.
