[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetNodesFormulas](./bitburner.hacknetnodesformulas.md) > [ramUpgradeCost](./bitburner.hacknetnodesformulas.ramupgradecost.md)
## HacknetNodesFormulas.ramUpgradeCost() method
Signature:
```typescript
ramUpgradeCost(startingRam: number, extraLevels?: number, costMult?: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| startingRam | number | |
| extraLevels | number | |
| costMult | number | |
Returns:
number