"How many tickets do we need to sell?" looks like fixedCosts / ticketPrice. It isn't. Ticketing platforms charge a percentage, a fixed amount per ticket and sometimes a fixed amount per order; each attendee costs something; and the room has a hard limit. Here is a small, exact version.
Contribution per ticket
// money in cents, rates in basis points const price = 5000; // $50.00 ticket const feeBp = 1000; // 10% platform fee on the full price const feePerTicket = 100; // $1.00 fixed per ticket const attendeeCost = 2000; // $20.00 catering + materials per attendee const pctFee = Math.round(price * feeBp / 10_000); // 500 const contribution = price - pctFee - feePerTicket - attendeeCost; // 2,400 = $24.00 Ceil division, not Math.round
const fixedCosts = 200_000; // $2,000 venue, speakers, marketing const ceilDiv = (a, b) => Math.floor((a + b - 1) / b); // positive integers only if (contribution <= 0) throw new Error('every ticket loses money'); const breakEven = ceilDiv(fixedCosts, contribution); // 84 83 tickets leave you $8 short, so the answer is 84. Math.round(200000 / 2400) gives 83, which is exactly the kind of off-by-one that turns a "break-even" event into a small loss. Check it both ways: the budget at N must be ≥ 0 and the budget at N − 1 must be < 0.
const result = n => n * contribution - fixedCosts; console.assert(result(breakEven) >= 0 && result(breakEven - 1) < 0); Per-order fees
A fixed fee per order depends on how many tickets people buy at once. With an average of 2 tickets per order and a $0.80 order fee, spread it per ticket, but round the order count up: 84 tickets in pairs is 42 orders, 85 tickets is 43.
const orderFee = 80, perOrder = 2; const totalAt = n => n * contribution - ceilDiv(n, perOrder) * orderFee - fixedCosts; let n = 1; while (totalAt(n) < 0) n++; // 85 Capacity is a gate, not a detail
const capacity = 90, staffSeats = 6, freeInvites = 4; const sellable = capacity - staffSeats - freeInvites; // 80 const possible = n <= sellable; // false If break-even is above the sellable seats, no marketing fixes it: the price, the costs or the room has to change.
The Event Budget & Ticket Profit Lab (PAID $19 one-time, free demo) does this with several ticket categories and also compares holding, postponing or cancelling on the cash that would still change.
