Aims The aim of this study was to investigate the feasibility of application of a 3D-printed megaprosthesis with hemiarthroplasty design for defects of the distal humerus or proximal ulna following tumour resection. Methods From June 2018 to January 2020, 13 patients with aggressive or malignant tumours involving the distal humerus (n = 8) or proximal ulna (n = 5) were treated by en bloc resection and reconstruction with a 3D-printed megaprosthesis with hemiarthroplasty, designed in our centre. In this paper, we summarize the baseline and operative data, oncological outcome, complication profiles, and functional status of these patients. Results Preparation of the prosthesis was a mean of 8.0 days (SD 1.5), during which time no patients experienced tumour progression. The mean operating time and intraoperative blood loss were 158.1 minutes (SD 67.6) and 176.9 ml (SD 187.8), respectively. All of the prostheses were implanted successfully. During a mean follow-up of 25.7 months (SD 7.8), no patients died, but four had complications (two superficial wound problems, one temporary palsy of radial nerve, and one dislocation). No aseptic loosening, structural failure, infection, heterotopic ossification, or degenerative arthritis was seen in this study. The mean flexion of the elbow was 119.6° (SD 15.9°) and the mean extension lag was 11.9° (SD 13.8°). The mean Musculoskeletal Tumor Society 93 score and Mayo Elbow Performance Score were 28.4 (SD 0.9) and 97.7 (SD 4.4), respectively. Conclusion The custom-made, 3D-printed megaprosthesis with hemiarthroplasty is a feasible option for functional reconstruction after resection of a tumour in the distal humerus or proximal ulna. Cite this article: Bone Joint J 2022;104-B(6):747–757.