Sub topic 1
Profit, revenue and cost
This chapter sets up the quantities that every later chapter uses: total revenue, total cost and profit. Profit is the gap between the first two, and it changes as the firm changes its output. Marginal analysis, the MR = MC rule and the shutdown decision all build on that idea.
Prerequisites
This chapter assumes you can:
- Solve linear equations and evaluate a quadratic such as
-3Q² + 80Q - 50at a givenQ. - Read a demand curve, meaning a relationship between price and the quantity buyers will take.
- Tell fixed costs (costs that do not change with output) from variable costs (costs that rise with output).
- Read short Python. The code only uses arithmetic, functions and
print.
No calculus is needed here. Differentiation appears in the later derivation chapters.
The definition of profit
Profit is what a firm keeps after paying for everything it used to produce and sell its output.
profit = total revenue - total cost
π(Q) = TR(Q) - TC(Q)The symbol π (pi) is the usual shorthand for profit. Profit is written as a function of output Q because the firm chooses Q, and both revenue and cost depend on that choice. Output is measured per period, such as units per week, so profit is also a flow per period.
The firm's goal in this tutorial is to pick the Q that makes π(Q) as large as possible. Two things have to be understood first: where TR(Q) comes from, and where TC(Q) comes from.
Total revenue
Total revenue is the money the firm receives from selling its output:
TR(Q) = P × QWhat P means depends on the market the firm sells into.
- A price-taking firm sells at a price set by the market.
Pis a constant, soTRis a straight line through the origin with slopeP. - A firm with market power faces a downward-sloping demand curve. To sell more, it must accept a lower price, so
Pfalls asQrises. In this chapter we write inverse demand asP = a - bQ, and thenTR = (a - bQ)·Q = aQ - bQ².
Revenue for a firm with market power rises at first, reaches a peak, and then falls. After the peak, the price cut needed to sell one more unit costs more than that unit brings in. Later chapters explain this through marginal revenue. For now, remember that maximum revenue and maximum profit are different things.
Total cost
Total cost is everything the firm pays to produce Q units. It splits into two parts:
TC(Q) = FC + VC(Q)- Fixed cost (
FC) does not change with output. Examples are rent on a factory lease or a licence fee. It is paid whether the firm makes 0 units or 1,000. - Variable cost (
VC) changes with output. Examples are materials, hourly labour and energy.
This tutorial uses one cost function throughout:
TC(Q) = 50 + 20Q + Q²Here FC = 50, and VC(Q) = 20Q + Q². The Q² term means each additional unit costs more to make than the last. Real firms see this when extra output forces overtime pay or crowds a fixed factory.
Fixed cost sets the profit at zero output. If the firm produces nothing but still owes its fixed cost, then π(0) = 0 - 50 = -50. The firm has a loss equal to its fixed cost.
How the pieces fit together
The firm picks Q. The demand curve turns Q into a price, and price times quantity gives revenue. The same Q goes into the cost function. Subtracting cost from revenue gives profit.
A worked example
Take inverse demand P = 100 - 2Q and the cost function above, TC = 50 + 20Q + Q². Then:
TR(Q) = (100 - 2Q)·Q = 100Q - 2Q²
π(Q) = 100Q - 2Q² - (50 + 20Q + Q²)
= -3Q² + 80Q - 50Profit is a quadratic in Q with a negative Q² coefficient, so its graph is an upside-down parabola: low at both ends, high in the middle. The code below tabulates it.
import math
a, b = 100, 2 # inverse demand: P = a - b*Q
f, c, d = 50, 20, 1 # total cost: TC = f + c*Q + d*Q**2
def price(q): return a - b * q
def total_revenue(q): return price(q) * q
def total_cost(q): return f + c * q + d * q**2
def profit(q): return total_revenue(q) - total_cost(q)
print("Q P TR TC profit")
for q in [0, 5, 10, 13, 14, 15, 20, 25, 27]:
print(q, price(q), total_revenue(q), total_cost(q), profit(q))
# Q P TR TC profit
# 0 100 0 50 -50
# 5 90 450 175 275
# 10 80 800 350 450
# 13 74 962 479 483
# 14 72 1008 526 482
# 15 70 1050 575 475
# 20 60 1200 850 350
# 25 50 1250 1175 75
# 27 46 1242 1319 -77
# Break-even output: solve profit(q) = 0, i.e. A*q**2 + B*q + C = 0
A, B, C = -(b + d), a - c, -f
disc = B * B - 4 * A * C
roots = sorted((-B + s * math.sqrt(disc)) / (2 * A) for s in (1, -1))
print([round(r, 2) for r in roots])
# [0.64, 26.03]Reading the table:
- At
Q = 0the firm loses its fixed cost, 50. - Profit climbs to about 483 around
Q = 13, then declines. The exact peak is atQ = 13.33, found in a later chapter. - Past
Q ≈ 26, the firm loses money again, and atQ = 27it loses 77. - The two break-even outputs, where profit is zero, are about 0.64 and 26.03. Profit is positive only between them.
Revenue is not profit
Revenue peaks at Q = 25, where TR = 1250. Profit at that output is only 75, because the cost of producing 25 units is 1175. The profit-maximising output is near 13, where revenue is only about 962 but cost is much lower. A firm that maximises revenue ignores what the extra output costs.
Profit per unit is not total profit
At Q = 5, profit per unit is 275 / 5 = 55. At Q = 13, it is 483 / 13 ≈ 37. Profit per unit is higher at 5, yet total profit is lower. The firm earns money on every unit it sells, so it should keep expanding as long as total profit rises, even if the margin per unit shrinks.
The price-taking case
If the firm is a price taker, the demand curve it faces is flat at the market price. Setting b = 0 and a = P in the code above gives TR = P·Q. With P = 40 and the same costs:
π(Q) = 40Q - (50 + 20Q + Q²) = -Q² + 20Q - 50At Q = 10, π = -100 + 200 - 50 = 50. At Q = 5, π = -25 + 100 - 50 = 25. Producing 10 beats producing 5, but the table does not yet tell us whether some other Q does better still. The next chapters answer that question without trying every number.
Common errors
- Forgetting fixed cost. Leaving
FCout ofTCoverstates profit by exactlyFCat every output. The bestQdoes not change, but the reported profit and any break-even calculation do. - Treating price as constant when it is not. For a firm with market power,
TRis notP₀ × Qfor a fixedP₀. Price depends onQ. - Mixing up output and price as the decision variable. For a firm facing a demand curve, choosing
QfixesP, and choosingPfixesQ. Pick one and derive the other. - Comparing per-period figures with totals over different periods. Keep revenue, cost and output on the same time basis.
- Reading "profit" here as the whole story. The costs in
TCshould include the opportunity cost of the owner's own resources. The next chapter covers how that changes the profit figure.
Key points
- Profit is
TR - TC, a function of the firm's chosen outputQ. TR = P × Q.Pis constant for a price taker and falls withQfor a firm with market power.TC = FC + VC(Q). Fixed cost is paid even at zero output, soπ(0) = -FC.- With a falling demand curve and rising cost, profit rises, peaks and falls, and the best output is neither the largest nor the one with the highest margin.
Exercise
Using P = 100 - 2Q and TC = 50 + 20Q + Q², compute total revenue, total cost and profit at Q = 12. Is profit at Q = 12 higher or lower than at Q = 13 (profit 483)?
Show answer
P = 100 - 24 = 76. TR = 76 × 12 = 912. TC = 50 + 240 + 144 = 434. Profit = 912 - 434 = 478. This is lower than 483 at Q = 13, so output of 13 is better than 12.
Exercise
A price-taking firm sells at P = 40 with TC = 50 + 20Q + Q². Its profit at Q = 10 is 50 and at Q = 5 is 25. Why is the firm's profit still -50 if it produces nothing, and what does this tell you about fixed cost?
Show answer
At Q = 0, TR = 0 and TC = FC = 50, so profit = 0 - 50 = -50. Fixed cost has to be paid whatever the output, so it sets the loss at zero output. It also shifts profit down by 50 at every output without changing how revenue and variable cost change with Q.