We learned this in basic physics class in regular school. (no special electronics class)
Every electronics related person should know this .. without the need of research.
Please try an internet search for "most basic electronic formulas" ... The formula comes up directly after Ohm´s Law without the need for clicking a link.
--> Every basic electronics tutorial (wikipedia, documents, videos...) will tell you: P = V x I
And as simple as it sounds:
P_out = V_out x I_out
P_in = V_in x I_in
.. or P_LED = V_LED x I_LED
.. or P_diode = V_diode x I_diode
.. or P_resistor = V_resistor x I_resistor
it´s always the same ..
Klaus
--- Updated ---
and without much surprise (since there is law of conservation of energy) ..
The difference between P_in and P_out .. is the power of the heat dissipated by the part.
the current" whatever the regulator itself needs" (as Brian describes it) .. can be found in the according datasheet. As so often.
Sometimes it is called "no load current" or "bias current" or "GND leg current" or similar. (the current will deend on output current)
Similar: the sum of all currents into a device is the same as the sum of the output currents.
Thus if you have I_in ... and a different I_out ... then the difference current needs to flow in the GND leg.
I_GND = I_in - I_out