# CUMPRINC Function

> Calculate the principal paid on a loan between two periods with CUMPRINC in TX Sheet Control: rate, periods, present value, payment timing and #NUM!.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > CUMPRINC Function
- **292 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cumprinc/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cumprinc/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cumprinc/llms-full.txt

---

Return the cumulative principal paid on a loan between two periods. `rate` is the interest rate per period, `nper` the total number of payment periods and `pv` the present value, the amount of the loan. `start_period` and `end_period` are the first and the last period to include, counted from 1, and `type` is the timing of the payments: 0 at the end of each period, 1 at the beginning. The result is negative, because it is money paid. A `rate`, `nper` or `pv` of zero or less, a start period less than 1 or after the end period, an end period after `nper`, or a `type` other than 0 or 1 returns `#NUM!`.

### Syntax

```text
CUMPRINC(rate, nper, pv, start_period, end_period, type)
```

Category: Financial. Minimum arguments: 6. Maximum arguments: 6.

Available for supported offline calculation.

### Examples

```text
=CUMPRINC(0.01,12,1000,1,12,0)
```

The formula returns -1,000 (-999.9999999999999 at full precision): over all 12 periods, the whole loan is paid back.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [CUMIPMT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cumipmt/llms-full.txt)
- **Next:** [DATE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/date/llms-full.txt)
