You need at least 10 obsidian blocks to make a functioning Nether portal. In this form, the Nether portal will be a vertically-oriented rectangular 4×5 obsidian frame without corners. To make the biggest possible Minecraft Nether portal of dimensions 23×23, you'd need 84 obsidian blocks for a frame without corners and 88 for a frame with corners.
Read more