---
title: "Dorm vs apartment annual cost"
method: GET
path: "/api/v1/calculate/dorm-vs-apartment"
---

# Dorm vs apartment annual cost

`GET /api/v1/calculate/dorm-vs-apartment`

## Request

- Base URL: `https://everycalc.xyz`
- URL: `https://everycalc.xyz/api/v1/calculate/dorm-vs-apartment`
- Auth: none declared

Compares the annual dorm cost with an apartment: monthly rent over the number of months, plus annual utilities, extra food cost, and commuting cost. Returns both annual totals, the difference, and which is cheaper. Results match the interactive calculator at everycalc.xyz; every response includes a calculator_url deep link to it.

## Query parameters

- `dorm_annual_cost` number, required
- `apartment_monthly_rent` number, required
- `months` number
- `utilities_annual` number, required
- `food_extra_annual` number, required
- `commute_annual` number, required

## Response `200`

Calculation result.

## Other responses

- `400`: Invalid input.

---

[API](https://skmtc.dev/everycalc/apis/everycalc-api.md) · [All operations](https://skmtc.dev/everycalc/apis/everycalc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/everycalc/apis/everycalc-api/revisions/a4bd5db0868a?raw)
