When any product is out of stock then the price is not displayed on the product detail page and category page in Magento 2. But If you want to display it for your customers then you have to apply the code. Let's learn Magento 2: How to Show Price of "out of stock" Products.