For a small calculator, like a price times a quantity, the result often goes into a span. The output element is made for this and brings accessibility for free.
<form oninput="total.value = (qty.valueAsNumber * 4.5).toFixed(2)">
<label>Tickets <input type="number" id="qty" name="qty" value="2" min="1"></label>
Total: € <output name="total" for="qty">9.00</output>
</form>
The for attribute lists the ids of the inputs that feed the result, separated by spaces. Because the output has a name, the form’s oninput handler can reach it directly as total, the same way it reaches qty. Every keystroke updates the total.
The extra I like most: MDN says many browsers treat output as a live region, so a screen reader announces the new total while focus stays in the number field. With a plain span you would have to add aria-live yourself.
The thing that catches people out: the value of an output is not sent when the form is submitted, even though it has a name. That is deliberate. If the server needs the total, calculate it there again, which you should do anyway, since anyone can change the number in their browser.
Further reading: MDN: The output element