How to use this calculator
Enter your monthly after-tax income.
List your budget categories with a minimum (floor) and a maximum (cap) for each. Leave a cap blank for "no cap".
Give each category a priority from 1 (nice to have) to 5 (essential). The optimizer funds higher priorities first.
Read the optimal plan, then check the "next dollar" card — it names the category your marginal money should fund.
When exactly two categories are flexible, scroll to the geometry chart to see every feasible plan as a polygon and why the chosen corner wins.
The standard formula
budget-allocatormaximize c·x subject to A·x ≤ b, x ≥ 0
The standard form of a linear program: choose the plan x that maximizes a linear objective c·x subject to linear constraints A·x ≤ b. Every quantity involved — the objective, each constraint, the boundaries — is a straight line in the decision variables.
How the calculation works
budget-allocatormaximize Σ wᵢ·xᵢ
subject to Σ xᵢ ≤ income
minᵢ ≤ xᵢ ≤ capᵢ (one pair per category)This tool’s model. Each xᵢ is the dollars assigned to category i, wᵢ is your 1–5 priority for it, and every rule you entered becomes one straight-line constraint. The solution method is the two-phase simplex algorithm with Bland’s anti-cycling rule, running entirely in your browser.
Site-wide conventions and all calculator formulas — rounding policy, period conventions, and how every formula is verified.
Worked example
Input
Monthly income $2,800. Housing: $1,200–$1,800, priority 4. Groceries: $500–$900, priority 5. Utilities, phone, and subscriptions pinned at $260, $80, and $40 (priority 3, 2, 1).
Result
Optimal plan: Groceries at its $900 cap, Housing $1,520, pinned categories at their exact amounts. Priority score 11,560 — no other legal split scores higher. The next dollar should go to Housing (the income constraint’s shadow price is 4).
Assumptions and important notes
- Priorities are ordinal rankings for funding order, not dollar values — the optimizer funds weight-5 categories first, but does not claim they are "worth 5×" a weight-1 category.
- A blank or $0 cap means "no cap beyond income"; caps above income are treated as income.
- The model assumes one month, fully divisible dollars, and no carry-over between months.
- The optimizer always places every dollar when caps allow it; money left over means every category hit a cap.
Common mistakes
- Reading the priority score as dollars — it is a weighted sum (Σ priority × dollars) used only to rank plans.
- Setting a minimum equal to income for one category, then expecting others to receive funding — the floors consume the whole budget by construction.
- Expecting the tool to decide the priorities for you: the math finds the best plan for the weights you give; choosing the weights is the judgment call.
Frequently asked questions
What is the "priority score" the tool maximizes?
It is the sum of priority × dollars across categories. Maximizing it sends money to high-weight categories first, exactly like an expert would triage a budget — but with a mathematical guarantee that no other allocation of your rules does better.
Why does the tool say a plan is "provably optimal"?
The feasible plans form a flat-sided polygon (or polyhedron), and a linear objective always peaks at a corner. The simplex method walks the corners and stops only when no neighbor is better — a certificate of optimality, not a guess.
What is the "income shadow price"?
The shadow price of a constraint is how much the objective would improve if the constraint relaxed by one unit. For your income it equals the priority weight of the marginal category — literally which category your next dollar should fund.
When do I see the polygon chart?
When exactly two categories have room between floor and cap (all others pinned), the whole problem is two-dimensional, so the page draws the exact feasible polygon, its corners, and the priority line sliding to the winning corner. With three or more flexible categories the plan lives in higher dimensions — you get the bar chart and table instead.
Is this the same as the 50/30/20 rule?
No — 50/30/20 is one fixed starting point. This tool generalizes it: you set the floors, caps, and priorities, and the optimizer derives the best split for your numbers. You can even reproduce 50/30/20 by setting matching floors and caps.
Does the calculator upload my budget anywhere?
No. The linear program is solved locally in your browser, and nothing you type leaves your device.
Sources
The claims on this page are backed by these official sources:
- Nobel Prize 1975 — Kantorovich & Koopmans — the theory of optimum resource allocation formalized by linear programming.
- CFPB — Budgeting: how to create a budget and stick with it — the income-first category budgeting framework this allocator operationalizes.