Choose a realistic thermal resistance
The arithmetic is simple. The uncertainty is almost entirely in the thermal resistance: it depends on the package, copper area, airflow, enclosure and mounting. Use the manufacturer's test condition or measured data where possible.
What this does not model
- Transient thermal impedance or heat capacity.
- Multiple heat paths in parallel.
- Airflow curves, radiation or enclosure temperature rise.