Autologous-bone-replaceable artificial bones made of bioresorbable materials (e.g., β-tricalcium phosphate (β-TCP)) are degraded and resorbed, i.e., replaced with autologous bone, when placed inside the human body. Although such autologous-bone replaceability requires high porosity to promote the ingression of blood vessels and cells, the high porosity reduces the mechanical strength. Artificial bone with a porosity distribution may be one way of solving this problem. In this paper, the authors propose a solid freeform fabrication method using electrolysis for controlling the foaming. The authors created three samples with different porosity and a sample with porosity distribution using the method and confirm the efficacy and potential of the proposed approach.