There aren't many easy tricks you can use to easily convert Fahrenheit to Celsius (or vice versa) in your head. Unless you're great with numbers, the formulas aren't exactly something you can you figure out using mental math. If you're not so great with numbers, there's calculators for that. Or, if you feel so inclined, the formulas can be solved using Python. These formulas involve addition, subtraction, multiplication, and division -- some of which we've covered in previous tutorials, so if you need a refresher, be sure to check those out.
Let's start with the formula to convert Fahrenheit to Celsius. In order to do this, we'll need to subtract 32 from the Fahrenheit value, then divide that number by 1.8. See how it would look in Python below.
fahrenheit = 82 celsius = (fahrenheit - 32) / 1.8
So the output of the example above would be 27.8. So 82 degrees Fahrenheit is the equivalent of 27.8 degrees Celsius. Pretty neat.
But what if you want to convert Celsius to Fahrenheit? The method for doing so is pretty similar to to formula in the example above. To convert Celsius to Fahrenheit, you need to sort of do the opposite of what happens in the example above. The celsius needs to be multiplied by 1.8, and then add 32 to that number. See an example of how it should look in Python below.
celsius = 10 fahrenheit = (celsius * 1.8) + 32
This one might be a little bit easier to try to do in your head. The output of the example above would be 50 degrees Fahrenheit.
The formulas can be used to convert any numerical value from Fahrenheit to Celsius or from Celsius to Fahrenheit. As Python equations, they might come in handy or you may find them useful when writing functions for your projects. Play around with them on your own and see it helps you get any better at trying to make the conversions in your head!To Practice: Try this interactive course on the basics of Lists, Functions, Packages and NumPy in Python.